[metacity] don't use deprecated gtk_style_context_get_background_color



commit 33ad43fdc4edeabea1c9f710f746680458cf425c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Nov 24 16:31:13 2014 +0200

    don't use deprecated gtk_style_context_get_background_color

 src/ui/draw-workspace.c |    2 +-
 src/ui/theme.c          |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/draw-workspace.c b/src/ui/draw-workspace.c
index 3a0b65a..f9e74cc 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 5763851..170a19e 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]