Merge branch 'kjellahl/menubar' into 'main'

gtk_popover_menu_bar_set_menu_model(): Accept model == NULL

See merge request GNOME/gtk!5232
This commit is contained in:
Matthias Clasen 2022-11-18 19:33:37 +00:00
commit d45155364e

View File

@ -707,7 +707,7 @@ gtk_popover_menu_bar_set_menu_model (GtkPopoverMenuBar *bar,
GMenuModel *model)
{
g_return_if_fail (GTK_IS_POPOVER_MENU_BAR (bar));
g_return_if_fail (G_IS_MENU_MODEL (model));
g_return_if_fail (model == NULL || G_IS_MENU_MODEL (model));
if (g_set_object (&bar->model, model))
{