summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-11-24 16:31:13 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-11-24 16:31:13 +0200
commit33ad43fdc4edeabea1c9f710f746680458cf425c (patch)
tree8f8d04fe7f590e7f056516bee46183f67708838a
parent7a5c50ce334f69105f484719c5d3be7cd0de55ad (diff)
downloadmetacity-33ad43fdc4edeabea1c9f710f746680458cf425c.tar.gz
don't use deprecated gtk_style_context_get_background_color
-rw-r--r--src/ui/draw-workspace.c2
-rw-r--r--src/ui/theme.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/draw-workspace.c b/src/ui/draw-workspace.c
index 3a0b65a3..f9e74cce 100644
--- a/src/ui/draw-workspace.c
+++ b/src/ui/draw-workspace.c
@@ -87,7 +87,7 @@ draw_window (GtkWidget *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 (style, state, "background-color", &color, NULL);
gdk_cairo_set_source_rgba (cr, &color);
cairo_rectangle (cr,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 5763851c..170a19e4 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -1515,7 +1515,7 @@ meta_gtk_style_get_light_color (GtkStyleContext *style,
GtkStateFlags state,
GdkRGBA *color)
{
- gtk_style_context_get_background_color (style, state, color);
+ gtk_style_context_get (style, state, "background-color", color, NULL);
gtk_style_shade (color, color, LIGHTNESS_MULT);
}
@@ -1524,7 +1524,7 @@ meta_gtk_style_get_dark_color (GtkStyleContext *style,
GtkStateFlags state,
GdkRGBA *color)
{
- gtk_style_context_get_background_color (style, state, color);
+ gtk_style_context_get (style, state, "background-color", color, NULL);
gtk_style_shade (color, color, DARKNESS_MULT);
}
@@ -1540,7 +1540,7 @@ meta_set_color_from_style (GdkRGBA *color,
{
case META_GTK_COLOR_BG:
case META_GTK_COLOR_BASE:
- gtk_style_context_get_background_color (context, state, color);
+ gtk_style_context_get (context, state, "background-color", color, NULL);
break;
case META_GTK_COLOR_FG:
case META_GTK_COLOR_TEXT: