[gtk+] Fix warning



commit 92e1d274758f95bdd0b9c121e667e88684d3f4a0
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Aug 6 18:56:01 2011 +0200

    Fix warning

 gtk/gtkstyleproperty.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index 6ffb46c..73200dc 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -3001,5 +3001,6 @@ _gtk_style_property_register (GParamSpec               *pspec,
   node->default_value_func = default_value_func;
   node->unset_func = unset_func;
 
-  g_hash_table_insert (properties, pspec->name, node);
+  /* pspec owns name */
+  g_hash_table_insert (properties, (gchar *)pspec->name, node);
 }



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