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/gtkshortcutlabel.c | |
parent | b1d64a6b3a6d16904104772e3a86294897acf41b (diff) | |
download | gtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz |
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtkshortcutlabel.c')
-rw-r--r-- | gtk/gtkshortcutlabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c index 4afa3f901f..9dc6355333 100644 --- a/gtk/gtkshortcutlabel.c +++ b/gtk/gtkshortcutlabel.c @@ -258,7 +258,7 @@ dim_label (const gchar *text) GtkWidget *label; label = gtk_label_new (text); - gtk_style_context_add_class (gtk_widget_get_style_context (label), "dim-label"); + gtk_widget_add_style_class (label, "dim-label"); return label; } @@ -284,7 +284,7 @@ display_shortcut (GtkWidget *self, if (i < n_mods) gtk_widget_set_size_request (disp, 50, -1); - gtk_style_context_add_class (gtk_widget_get_style_context (disp), "keycap"); + gtk_widget_add_style_class (disp, "keycap"); gtk_label_set_use_markup (GTK_LABEL (disp), TRUE); gtk_widget_set_parent (disp, self); |