On Thu, 2011-02-10 at 10:27 -0800, cppgangster wrote: > Hi I am trying to put Gtk::menu to Gtk:Vbox container, when I run it, > I get > exception throw with msg "(main:14565): Gtk-CRITICAL **: gtk_box_pack: > assertion `child->parent == NULL' failed"
GtkMenu seems to have some GtkWindow parent automatically, so you can't add it to a second parent widget. That is admittedly a little strange, and maybe it's a bug that there isn't a clearer warning. However, you probably want to be using Gtk::MenuBar, putting a Gtk::Menu into that, which should work. -- [email protected] www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
