[gtk+/wip/css: 118/135] csslookup: Use the new gtk_style_context_peek_property()



commit f8bf74d72f7e63a3c7a0d02e3203131a6b92868c
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jan 3 05:06:30 2012 +0100

    csslookup: Use the new gtk_style_context_peek_property()

 gtk/gtkcsslookup.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c
index af4eddf..ff833cb 100644
--- a/gtk/gtkcsslookup.c
+++ b/gtk/gtkcsslookup.c
@@ -207,10 +207,10 @@ _gtk_css_lookup_resolve (GtkCssLookup    *lookup,
       else
         {
           /* Set NULL here and do the inheritance upon lookup? */
-          gtk_style_context_get_property (parent,
-                                          _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop)),
-                                          gtk_style_context_get_state (parent),
-                                          &value);
+          result = _gtk_style_context_peek_property (parent,
+                                                     _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop)));
+          g_value_init (&value, G_VALUE_TYPE (result));
+          g_value_copy (result, &value);
         }
 
       _gtk_style_properties_set_property_by_property (props,



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