diff options
author | György Balló <[email protected]> | 2016-03-21 05:33:09 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-03-23 09:55:53 +0100 |
commit | f1ad9e27d125359efe2984e21b166bab3d392e81 (patch) | |
tree | d58bb859d68c55ab95625c7d3da853f2eaa620c0 /applets/wncklet/workspace-switcher.c | |
parent | f9221b85ca81f34dc6eb258c6b160bf88ef0d7ea (diff) | |
download | mate-panel-f1ad9e27d125359efe2984e21b166bab3d392e81.tar.bz2 mate-panel-f1ad9e27d125359efe2984e21b166bab3d392e81.tar.xz |
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.
Diffstat (limited to 'applets/wncklet/workspace-switcher.c')
-rw-r--r-- | applets/wncklet/workspace-switcher.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |