summaryrefslogtreecommitdiff
path: root/src/ui/draw-workspace.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-05-05 02:48:14 -0300
committerJasper St. Pierre <jstpierre@mecheye.net>2012-05-07 20:37:09 -0300
commit7623b9739975e462e6bd954bc144ccf6396b66c1 (patch)
tree6b2b3fed5fa1e48e9aac479470e3b46ceebfea56 /src/ui/draw-workspace.c
parent8d8e0cb05582aefd2b63365e9938bb2ed938503a (diff)
downloadmutter-wip/cb2eb3.tar.gz
Remove legacy theming APIwip/cb2eb3
Since the move to GTK+ toplevels, it required removing the preview-widget and theme-viewer parts of the code. (They didn't work with the new CSS stuff anyway... shhh..)
Diffstat (limited to 'src/ui/draw-workspace.c')
-rw-r--r--src/ui/draw-workspace.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ui/draw-workspace.c b/src/ui/draw-workspace.c
index 58cff001a..9e6813d71 100644
--- a/src/ui/draw-workspace.c
+++ b/src/ui/draw-workspace.c
@@ -26,7 +26,6 @@
*/
#include "draw-workspace.h"
-#include "theme-private.h"
static void
@@ -75,11 +74,8 @@ draw_window (GtkWidget *widget,
{
GdkPixbuf *icon;
int icon_x, icon_y, icon_w, icon_h;
- gboolean is_active;
GdkRGBA color;
GtkStyleContext *style;
-
- is_active = win->is_active;
cairo_save (cr);
@@ -87,10 +83,7 @@ draw_window (GtkWidget *widget,
cairo_clip (cr);
style = gtk_widget_get_style_context (widget);
- if (is_active)
- meta_gtk_style_get_light_color (style, state, &color);
- else
- gtk_style_context_get_background_color (style, state, &color);
+ gtk_style_context_get_background_color (style, state, &color);
gdk_cairo_set_source_rgba (cr, &color);
cairo_rectangle (cr,
@@ -197,7 +190,7 @@ wnck_draw_workspace (GtkWidget *widget,
{
GdkRGBA color;
- meta_gtk_style_get_dark_color (style,state, &color);
+ gtk_style_context_get_background_color (style, state, &color);
gdk_cairo_set_source_rgba (cr, &color);
cairo_rectangle (cr, x, y, width, height);
cairo_fill (cr);