April 16, 2007
Silencing a GLib-GObject-WARNING
When gcc tells you something like this…
(process:28965): GLib-GObject-WARNING **: specified instance size for type `MyObject’ is smaller than the parent type’s `GObject’ instance size
& you know that you’ve covered all the possible bugs in your object code - think again! Check your structure definition! Remember - the GObject & GObjectClass members in the object & ObjectKlass have to defined as instance variables, not pointers!
I did this mistake today & was then searching for my error from past 2 hours! Lol
BTW, just found out, GOB2 is a nice tool to generate code for glib based objects. I’m soon gonna give it a try ![]()


