From f1ad9e27d125359efe2984e21b166bab3d392e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Ball=C3=B3?= Date: Mon, 21 Mar 2016 05:33:09 +0100 Subject: GTK+3.20: adjust CSS classes for WnckPager This allows to use class names consistently. The old WnckPager CSS selector will not work with GTK+ 3.20. --- applets/wncklet/workspace-switcher.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'applets/wncklet') diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index 836919ba..e28e1b93 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -563,14 +563,16 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet) #if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *context; context = gtk_widget_get_style_context (GTK_WIDGET (applet)); + gtk_style_context_add_class (context, "wnck-applet"); + context = gtk_widget_get_style_context (pager->pager); gtk_style_context_add_class (context, "wnck-pager"); provider = gtk_css_provider_new (); gtk_css_provider_load_from_data (provider, - "WnckPager:selected {\n" + ".wnck-pager:selected {\n" "background-color: #4A90D9; }", -1, NULL); - gtk_style_context_add_provider (gtk_widget_get_style_context (pager->pager), + gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_FALLBACK); g_object_unref (provider); -- cgit v1.2.1