[gtk+] cssprovider: Use right hash table when printing



commit 7836df29cbbf396ffb2d87f21567484665dbcbb4
Author: Benjamin Otte <otte redhat com>
Date:   Mon May 23 07:01:14 2011 +0200

    cssprovider: Use right hash table when printing
    
    If the CSS provider had widget style properties, printing them would
    crash since 82b340f6f005a7d2b70d9aa7febb8612a53d0eda

 gtk/gtkcssprovider.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 501d283..2be1039 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3004,7 +3004,7 @@ gtk_css_ruleset_print (const GtkCssRuleset *ruleset,
       for (walk = keys; walk; walk = walk->next)
         {
           const char *name = walk->data;
-          const GValue *value = g_hash_table_lookup (ruleset->style, (gpointer) name);
+          const GValue *value = g_hash_table_lookup (ruleset->widget_style, (gpointer) name);
 
           g_string_append (str, "  ");
           g_string_append (str, name);



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