summaryrefslogtreecommitdiff
path: root/gtk/gtkemojicompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-10 12:08:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-10 12:09:57 -0400
commit394ea32e93cab4253e7dd595f2a13824421f6d03 (patch)
tree7e6505f11199c5ebc47da50d249324bf09609a19 /gtk/gtkemojicompletion.c
parent2bd36d490b3a0c8138a2ad3aa246a0876ae0718b (diff)
downloadgtk+-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.c2
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);