On Wed, 2009-05-13 at 19:59 -0500, Adrián Ortega wrote: > */Question 1:/* > I'm building a GUI with Glade 3.6.3 (project file format GtkBuilder) and > everything is shown on screen nicely. From what I've read in the .pdf > book programming with gtkmm every widget that has a parent will be > destroyed when its parent is destroyed. Top level widgets have to be > deleted by the programmer (i got that). > > When you only use code to build the GUI you have to use the method "void > set_parent(Widget& parent)"
No, I've rarely used that. add() or pack_*() are enough. > from the Gtk::Widget class, but when you use > Glade, *are the widgets automatically given a parent when adding items > in Glade? Yes. (Obviously, I think.) [snip] > So after opening, adding and displaying widgets, when I exit the program > I get this warning: > > *(main:9151): GLib-GObject-WARNING **: > /build/buildd/glib2.0-2.20.1/gobject/gsignal.c:2387: instance > `0x8953e98' has no handler with id `446'* [snip] I think you should just try to reduce it to a simple test case to get more information about what might be causing that. -- [email protected] www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
