Menu destruction



Hi!

In the discussion about bug
http://bugzilla.gnome.org/show_bug.cgi?id=339791 some questions about
the destruction of GtkMenu and GtkMenuItem came up.

Having a look at the source reveals that gtk_menu_attach_to_widget() is
much like gtk_widget_set_parent(). Anyway, we would rather think that
the GtkMenuItem => GtkMenu relation should be like a GtkContainer/GtkBin
= Child.

In gtk_menu_item_destroy() any submenu is destroyed absolutely
unconditionally which is really bad when you want to use the submenu
later and is also no documented.

Is this the expected behaviour in GTK+ or should this be changed?

Thanks and regards,
Johannes

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]