diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-10 12:08:16 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-10 12:09:57 -0400 |
commit | 394ea32e93cab4253e7dd595f2a13824421f6d03 (patch) | |
tree | 7e6505f11199c5ebc47da50d249324bf09609a19 /gtk/gtkemojicompletion.c | |
parent | 2bd36d490b3a0c8138a2ad3aa246a0876ae0718b (diff) | |
download | gtk+-394ea32e93cab4253e7dd595f2a13824421f6d03.tar.gz |
Use gtk_widget_add/remove_css_class more
Replace most uses of gtk_style_context_add/remove_class
by the new APIs. The only remaining uses of the old API
are in save/restore situations.
Diffstat (limited to 'gtk/gtkemojicompletion.c')
-rw-r--r-- | gtk/gtkemojicompletion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c index 073961cd99..11a1946e27 100644 --- a/gtk/gtkemojicompletion.c +++ b/gtk/gtkemojicompletion.c @@ -499,7 +499,7 @@ add_emoji (GtkWidget *list, pango_attr_list_insert (attrs, pango_attr_scale_new (PANGO_SCALE_X_LARGE)); gtk_label_set_attributes (GTK_LABEL (label), attrs); pango_attr_list_unref (attrs); - gtk_style_context_add_class (gtk_widget_get_style_context (label), "emoji"); + gtk_widget_add_css_class (label, "emoji"); child = g_object_new (GTK_TYPE_LIST_BOX_ROW, "css-name", "emoji-completion-row", NULL); gtk_widget_set_focus_on_click (child, FALSE); |