From: Matthias Clasen Date: Fri, 27 Dec 2019 06:46:04 +0000 (-0500) Subject: menutoolbutton: Fix sensitivity handling X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~486^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c5f4c587111328a077b2335307e1b03f3c625fd;p=gtk4.git menutoolbutton: Fix sensitivity handling We don't need to set the arrow button explicitly to insensitive, GtkMenuButton handles that automatically. --- diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 19aba366ce..efbc6288b2 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -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));