GtkMenuSectionBox: Add a clarifying assertion

This assertion helps coverity see what is clear to us.
This commit is contained in:
Matthias Clasen
2015-07-17 20:15:24 -04:00
parent 963c6042a7
commit 9eef97fe1c

View File

@@ -262,6 +262,7 @@ open_submenu (GtkWidget *button,
focus = GTK_WIDGET (g_object_get_data (G_OBJECT (button), "focus"));
get_ancestors (focus, GTK_TYPE_STACK, &stack, &child);
g_assert (stack != NULL && child != NULL);
gtk_stack_set_visible_child (GTK_STACK (stack), child);
gtk_widget_grab_focus (focus);
}