diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-29 12:11:39 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-07 13:16:32 -0500 |
commit | b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7 (patch) | |
tree | dca0c99c5a1d77e317a2dce4f42c851816ff6c63 /gtk/gtkfontbutton.c | |
parent | b1d64a6b3a6d16904104772e3a86294897acf41b (diff) | |
download | gtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz |
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtkfontbutton.c')
-rw-r--r-- | gtk/gtkfontbutton.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index 79ac0c31ed..f9ef7ad7b3 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -555,7 +555,6 @@ gtk_font_button_class_init (GtkFontButtonClass *klass) static void gtk_font_button_init (GtkFontButton *font_button) { - GtkStyleContext *context; GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (font_button); GtkWidget *box; @@ -592,8 +591,7 @@ gtk_font_button_init (GtkFontButton *font_button) gtk_font_button_take_font_desc (font_button, NULL); - context = gtk_widget_get_style_context (GTK_WIDGET (priv->button)); - gtk_style_context_add_class (context, "font"); + gtk_widget_add_style_class (priv->button, "font"); } static void |