[metacity] Revert "don't use deprecated gtk_style_context_get_background_color"



commit 78eed7293f9b0819f125dc14efd0a2b1b79d2096
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Dec 5 12:47:55 2014 +0200

    Revert "don't use deprecated gtk_style_context_get_background_color"
    
    This reverts commit 33ad43fdc4edeabea1c9f710f746680458cf425c.

 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 f9e74cc..3a0b65a 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 (style, state, "background-color", &color, NULL);
+    gtk_style_context_get_background_color (style, state, &color);
   gdk_cairo_set_source_rgba (cr, &color);
 
   cairo_rectangle (cr,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 170a19e..5763851 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 (style, state, "background-color", color, NULL);
+  gtk_style_context_get_background_color (style, state, color);
   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 (style, state, "background-color", color, NULL);
+  gtk_style_context_get_background_color (style, state, color);
   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 (context, state, "background-color", color, NULL);
+      gtk_style_context_get_background_color (context, state, color);
       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]