On Tue, May 11, 2004 at 12:11:04PM +0200, Sven Neumann wrote: > Hi, > > Roger Leigh <roger whinlatter uklinux net> writes: > > > I've been learning about GType/GObject, and trying to create my own > > objects. I'm attempting to derive a new object from a GtkWindow. > > While the code compiles, I can't cast the object to a GtkWindow: > > You are initializing the instance in the class initializer. Hi Sven! Thanks, that sorted it. Question: why does GTypeInfo not have a corresponding instance_finalise/instance_dispose for instance_init? A question for libglade gurus: when you specify signals in the Glade interface description, does the target object have to be in the object tree specified in the .glade file? In the (attached) source, I'd like to connect events on buttons to methods on the main window, which is not part of the Glade interface (the object tree is reparented). Is there any way to automate this? When reparenting with gtk_widget_reparent(), unless I call gtk_widget_grab_default on the default widget that was in the widget tree that was moved, I get a segfault. Is this a bug, or an unintended side-effect? (The window that originally contained them is not used.) Thanks, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
Attachment:
test-gobject.tar.bz2
Description: Binary data