Commit 9ea08fae authored by Murray Cumming's avatar Murray Cumming

docs: gtk_menu_attach_to_widget()

Add a few more clues about why this is useful,
based on
and the reference to it from gtk_menu_new_from_model().
parent 8488ae6d
......@@ -1206,6 +1206,11 @@ attach_widget_screen_changed (GtkWidget *attach_widget,
* Attaches the menu to the widget and provides a callback function
* that will be invoked when the menu calls gtk_menu_detach() during
* its destruction.
* If the menu is attached to the widget then it will be destroyed
* when the widget is destroyed, as if it was a child widget.
* An attached menu will also move between screens correctly if the
* widgets moves between screens.
gtk_menu_attach_to_widget (GtkMenu *menu,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment