gtkpopovermenu: Drop call to gtk_widget_show()

The stack is already visible.
This commit is contained in:
Ernestas Kulik 2018-07-23 13:00:11 +03:00
parent 1d72e3e193
commit 49ae68c2c7

View File

@ -139,7 +139,6 @@ gtk_popover_menu_init (GtkPopoverMenu *popover)
gtk_stack_set_vhomogeneous (GTK_STACK (stack), FALSE);
gtk_stack_set_transition_type (GTK_STACK (stack), GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT);
gtk_stack_set_interpolate_size (GTK_STACK (stack), TRUE);
gtk_widget_show (stack);
gtk_container_add (GTK_CONTAINER (popover), stack);
g_signal_connect (stack, "notify::visible-child-name",
G_CALLBACK (visible_submenu_changed), popover);