mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
popovermenu: Avoid an uninitialized variable
Pointed out by Timm/clang. Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2434
This commit is contained in:
parent
6c6b3d0d11
commit
073e8dd987
@ -148,6 +148,8 @@ gtk_popover_menu_set_active_item (GtkPopoverMenu *menu,
|
||||
gtk_widget_set_state_flags (menu->active_item, GTK_STATE_FLAG_SELECTED, FALSE);
|
||||
if (GTK_IS_MODEL_BUTTON (item))
|
||||
g_object_get (item, "popover", &popover, NULL);
|
||||
else
|
||||
popover = NULL;
|
||||
|
||||
if (!popover || popover != menu->open_submenu)
|
||||
gtk_widget_grab_focus (menu->active_item);
|
||||
|
Loading…
Reference in New Issue
Block a user