menutoolbutton: Fix sensitivity handling
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Dec 2019 06:46:04 +0000 (01:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Dec 2019 01:31:57 +0000 (20:31 -0500)
We don't need to set the arrow button explicitly
to insensitive, GtkMenuButton handles that automatically.

gtk/gtkmenutoolbutton.c

index 19aba366ce67f714f29cdcb2e7e61edcdb28a2e5..efbc6288b292b90ba7a278dab2ac6ff1011f83bb 100644 (file)
@@ -320,9 +320,6 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button)
   arrow_button = gtk_menu_button_new ();
   gtk_container_add (GTK_CONTAINER (box), arrow_button);
 
-  /* the arrow button is insentive until we set a menu */
-  gtk_widget_set_sensitive (arrow_button, FALSE);
-
   gtk_container_add (GTK_CONTAINER (button), box);
   gtk_menu_button_set_align_widget (GTK_MENU_BUTTON (arrow_button),
                                     GTK_WIDGET (button));