From 891101554920b7e6ae1ce0e7ed205fc64eaa8ddc Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Fri, 18 Nov 2022 18:09:42 +0100 Subject: [PATCH] gtkpopovermenubar: Make model nullable The description of gtk_popover_menu_bar_new_from_model() and gtk_popover_menu_bar_set_menu_model() says that model is nullable. Make it so. --- gtk/gtkpopovermenubar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpopovermenubar.c b/gtk/gtkpopovermenubar.c index f754246049..b4d7002f9c 100644 --- a/gtk/gtkpopovermenubar.c +++ b/gtk/gtkpopovermenubar.c @@ -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)) {