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/gtkframe.c | |
parent | b1d64a6b3a6d16904104772e3a86294897acf41b (diff) | |
download | gtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz |
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index 40d5bc2939..ab7ccb429c 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -534,11 +534,9 @@ gtk_frame_set_shadow_type (GtkFrame *frame, priv->shadow_type = type; if (type == GTK_SHADOW_NONE) - gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (frame)), - GTK_STYLE_CLASS_FLAT); + gtk_widget_add_style_class (GTK_WIDGET (frame), "flat"); else - gtk_style_context_remove_class (gtk_widget_get_style_context (GTK_WIDGET (frame)), - GTK_STYLE_CLASS_FLAT); + gtk_widget_remove_style_class (GTK_WIDGET (frame), "flat"); g_object_notify_by_pspec (G_OBJECT (frame), frame_props[PROP_SHADOW_TYPE]); } |