diff options
author | infirit <[email protected]> | 2015-08-20 13:59:33 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-20 14:00:39 +0200 |
commit | 6ca27a4743078f5905f8e1382faae8979261d5ba (patch) | |
tree | 1f2a382407705a4eee20f96ce9e7324fea00fd44 /src/ui/draw-workspace.c | |
parent | 105c6eb2116ab5db0157b272a22243bba1ae50ef (diff) | |
download | marco-6ca27a4743078f5905f8e1382faae8979261d5ba.tar.bz2 marco-6ca27a4743078f5905f8e1382faae8979261d5ba.tar.xz |
Gtk3: Fix background color
Also drop the mate-desktop dark/light color functions in favour
of internal ones.
Diffstat (limited to 'src/ui/draw-workspace.c')
-rw-r--r-- | src/ui/draw-workspace.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/draw-workspace.c b/src/ui/draw-workspace.c index a40579db..4feb25c9 100644 --- a/src/ui/draw-workspace.c +++ b/src/ui/draw-workspace.c @@ -26,12 +26,7 @@ */ #include "draw-workspace.h" - -#if GTK_CHECK_VERSION (3, 0, 0) -#define MATE_DESKTOP_USE_UNSTABLE_API -#include <libmate-desktop/mate-desktop-utils.h> -#endif - +#include "theme.h" static void get_window_rect (const WnckWindowDisplayInfo *win, @@ -110,7 +105,7 @@ draw_window (GtkWidget *widget, #if GTK_CHECK_VERSION (3, 0, 0) style = gtk_widget_get_style_context (widget); if (is_active) - mate_desktop_gtk_style_get_light_color (style, state, &color); + meta_gtk_style_get_light_color (style, state, &color); else gtk_style_context_get_background_color (style, state, &color); gdk_cairo_set_source_rgba (cr, &color); @@ -268,7 +263,7 @@ wnck_draw_workspace (GtkWidget *widget, #if GTK_CHECK_VERSION (3, 0, 0) GdkRGBA color; - mate_desktop_gtk_style_get_dark_color (style,state, &color); + meta_gtk_style_get_dark_color (style,state, &color); gdk_cairo_set_source_rgba (cr, &color); #else gdk_cairo_set_source_color (cr, >k_widget_get_style (widget)->dark[state]); |