summaryrefslogtreecommitdiff
path: root/gtk/gtkmenubutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-02-21 21:40:48 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-21 21:40:48 -0500
commit00e87d24450821f980523b8e8d31064dd3feb131 (patch)
tree7d171faacc2d3c5b2c70d5bb5c90b6ec4cea579b /gtk/gtkmenubutton.c
parent89a264de910544169ed768207ed96e9013c19ce7 (diff)
downloadgtk+-00e87d24450821f980523b8e8d31064dd3feb131.tar.gz
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
Diffstat (limited to 'gtk/gtkmenubutton.c')
-rw-r--r--gtk/gtkmenubutton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index aa11a8d3e6..466408410c 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -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");
}