forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
dfbaeefc64
commit
8911015549
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user