summaryrefslogtreecommitdiff
path: root/gtk/gtkmenubutton.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-01-29 12:11:39 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-02-07 13:16:32 -0500
commitb7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7 (patch)
treedca0c99c5a1d77e317a2dce4f42c851816ff6c63 /gtk/gtkmenubutton.c
parentb1d64a6b3a6d16904104772e3a86294897acf41b (diff)
downloadgtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtkmenubutton.c')
-rw-r--r--gtk/gtkmenubutton.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 3e0a31a391..15a6de1644 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -471,7 +471,6 @@ static void
gtk_menu_button_init (GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = gtk_menu_button_get_instance_private (menu_button);
- GtkStyleContext *context;
priv->arrow_type = GTK_ARROW_DOWN;
@@ -482,8 +481,7 @@ gtk_menu_button_init (GtkMenuButton *menu_button)
gtk_widget_set_sensitive (priv->button, FALSE);
- context = gtk_widget_get_style_context (GTK_WIDGET (menu_button));
- gtk_style_context_add_class (context, "popup");
+ gtk_widget_add_style_class (GTK_WIDGET (menu_button), "popup");
}
/**