GObject Generator
May 15th, 2009
There has been recent talk about GObject Generators, so I’m going to throw my own one into the mix. It’s based on Ross’ gobject.py, but given a fresh dose of GTK+ and auto completion love.

If you’d like to try it out, there is a git repository available:
git clone http://gnome.org/~thos/git/gobject-gen.git
I’d like to move it to GNOME git, but before I do it needs a decent project name. Does anyone have any suggestions? Something descriptive but unique, preferably with only 2 syllables.
Kudos to the Anjuta GObject generator for the auto completion idea. Also, before any one suggests it, I know about Vala but we’re not using it for this project, so it’s of no use.
May 15th, 2009 at 9:30 am
G.O.Gen
May 15th, 2009 at 9:47 am
I hate myself for saying this, but ObjKit?
May 15th, 2009 at 9:51 am
Rob’s GObject-o-tron still has my vote. Failing that though, gobject-gen, gob-gen, gobj-gen, obj-gen, something along those lines… Something that actually says what it does…
May 15th, 2009 at 10:15 am
At least as important as the name… The icon!
May 15th, 2009 at 12:05 pm
Genero? -> GENERator for gObject
May 15th, 2009 at 12:14 pm
I’d love this if I could use some templates, for instance I’d have templates for python, vala, c etc… and could generate objects for whatever language, also it would be awesomely cool if I could have all different kinds of templates with other features, and maybe configurable features too (e.g. include finalise, mouse events etc…) which are interpreted during template processing.
Each template offers up a set of variables which can be interpreted, their respective ranges and defaults etc… The UI, be it command line, gtk gets the input from the user and spews out the processed text.
What’s needed is a template language that makes sense, that doesn’t have idiotic syntax, that can do the interpretation.
May 15th, 2009 at 3:19 pm
One thing that would be nice, if it could remember project prefixes. Like if I am inside the gstreamer sources pre-enter Gst, gst_ and so on there, if I hack on my own project (buzztard), put Bt, bt_ and so on there. One thing that might work, is that you remember the directory name and if its ever called again from same directory you can reuse the prefix.
But then, as Karl said you want it to follow the layout in your files (copyright header etc.).
May 15th, 2009 at 3:46 pm
Name suggestion: GObOrator
May 15th, 2009 at 4:48 pm
G-nerator! hmm
May 15th, 2009 at 5:06 pm
Oh, by the way, if you’d just use Vala you’d have a nice GObject generator, and way more powerful than your tool with that.
May 15th, 2009 at 5:58 pm
Name suggestion: Turbine
May 15th, 2009 at 10:55 pm
Gobstrap
May 16th, 2009 at 4:06 am
I would suggest this name:
ShitMuchWorseThanVala
May 17th, 2009 at 4:00 am
See also: gobgen.vim (http://www.vim.org/scripts/script.php?script_id=2003)
May 24th, 2009 at 4:46 pm
Hi Thomas,
I happened to stumble upon your blog while looking for a gtk theme editor. I like the application you made and was wondering if it is available for download since I was unable to find a download link. The application I am talking about is on this page of your blog: http://blogs.gnome.org/thos/2007/08/27/unnamed-project/
Thanks.
May 28th, 2009 at 1:20 pm
[...] gobject generator project I mentioned a while ago has been named “Turbine” (thanks to Charles for the suggestion). I’ve [...]
May 28th, 2009 at 5:07 pm
[...] gobject generator project I mentioned a while ago has been named “Turbine” (thanks to Charles for the suggestion). I’ve made a few [...]