menutoolbutton: Fix sensitivity handling

We don't need to set the arrow button explicitly
to insensitive, GtkMenuButton handles that automatically.
This commit is contained in:
Matthias Clasen 2019-12-27 01:46:04 -05:00
parent 8ee44d200d
commit 2c5f4c5871

View 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));