After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653865 - Tool to generate class boilerplate
Tool to generate class boilerplate
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gobject
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 341378 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-07-02 15:31 UTC by Claudio Saavedra
Modified: 2017-10-11 09:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Claudio Saavedra 2011-07-02 15:31:47 UTC
There is http://burtonini.com/cgi/gobject.py and probably others out there, but I was wondering whether it might make sense to have such a tool shipped together with GLib, in the shape of a command-line tool.
Comment 1 Damien Lespiau 2011-08-23 08:12:36 UTC
FWIW Ross' script above has been enhanced and is maintained as http://git.gnome.org/browse/turbine these days
Comment 2 Emmanuele Bassi (:ebassi) 2014-12-22 18:00:20 UTC
*** Bug 341378 has been marked as a duplicate of this bug. ***
Comment 3 Emmanuele Bassi (:ebassi) 2014-12-22 18:02:13 UTC
I'm not sure we're going to add a boilerplate generator script to GObject, but it's worth thinking about an IDL for GObject instead.

in the meantime, we are discussing the addition of a header boilerplate generation macro in bug 389585. there's also GProperty, which adds macros to declare accessors for properties.
Comment 4 Philip Withnall 2017-10-11 09:11:32 UTC
Since this bug was filed, we’ve gained GNOME Builder, which has template support for GObjects; and the boilerplate has been reduced through the addition of G_DECLARE_{FINAL,DERIVABLE}_TYPE macros.

I think that’s sufficient.