mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Fix GtkMenuToolButton
The addition of popovers to menu buttons broke this, by making the toolbuttons stay insensitive. https://bugzilla.gnome.org/show_bug.cgi?id=724799
This commit is contained in:
parent
89a264de91
commit
00e87d2445
@ -708,6 +708,8 @@ _gtk_menu_button_set_popup_with_func (GtkMenuButton *menu_button
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (menu_button)), "menu-button");
|
||||
}
|
||||
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (menu_button), priv->menu != NULL);
|
||||
|
||||
g_object_notify (G_OBJECT (menu_button), "popup");
|
||||
g_object_notify (G_OBJECT (menu_button), "menu-model");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user