From 658e4c535783134966d1bde898fc5cc17255a778 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 3 Jun 2020 17:36:52 -0400 Subject: [PATCH] listview: Use gtk_widget_add_css_class No need to use the style context api for this anymore. --- gtk/gtklistview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtklistview.c b/gtk/gtklistview.c index 35a3df9339..90b594da30 100644 --- a/gtk/gtklistview.c +++ b/gtk/gtklistview.c @@ -994,9 +994,9 @@ gtk_list_view_set_show_separators (GtkListView *self, self->show_separators = show_separators; if (show_separators) - gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self)), "separators"); + gtk_widget_add_css_class (GTK_WIDGET (self), "separators"); else - gtk_style_context_remove_class (gtk_widget_get_style_context (GTK_WIDGET (self)), "separators"); + gtk_widget_remove_css_class (GTK_WIDGET (self), "separators"); g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SHOW_SEPARATORS]); }