Compare commits

...

1 Commits

Author SHA1 Message Date
Daniel Boles
b0f4841ce1 MenuButton: doc :menu-model doesnʼt clear :popover
It presumably used to, but now the existing :popover is replaced with a
non-NULL one that GTK creates automatically from the new :menu-model.
2023-10-02 16:38:57 +01:00

View File

@@ -773,8 +773,9 @@ menu_deactivate_cb (GtkMenuButton *self)
* [ctor@Gtk.PopoverMenu.new_from_model]. Actions will be connected
* as documented for this function.
*
* If [property@Gtk.MenuButton:popover] is already set, it will be
* dissociated from the @menu_button, and the property is set to %NULL.
* If [property@Gtk.MenuButton:popover] was already set, that popover will be
* dissociated from the @menu_button, and the property is updated to refer to
* the newly created popover.
*/
void
gtk_menu_button_set_menu_model (GtkMenuButton *menu_button,