[gtk+] GtkStyleSet: Make property registration take const GValues.



commit 7647deb4170480e1de3ea6c667440d6229dc7d2f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Apr 11 19:52:58 2010 +0200

    GtkStyleSet: Make property registration take const GValues.

 gtk/gtkstyleset.c |    6 +++---
 gtk/gtkstyleset.h |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c
index c26eb3c..f91d332 100644
--- a/gtk/gtkstyleset.c
+++ b/gtk/gtkstyleset.c
@@ -175,9 +175,9 @@ property_node_lookup (GQuark quark)
 
 /* Property registration functions */
 void
-gtk_style_set_register_property (const gchar *property_name,
-                                 GType        type,
-                                 GValue      *default_value)
+gtk_style_set_register_property (const gchar  *property_name,
+                                 GType         type,
+                                 const GValue *default_value)
 {
   PropertyNode *node, new = { 0 };
   GQuark quark;
diff --git a/gtk/gtkstyleset.h b/gtk/gtkstyleset.h
index ff1b859..642dd02 100644
--- a/gtk/gtkstyleset.h
+++ b/gtk/gtkstyleset.h
@@ -52,9 +52,9 @@ struct GtkStyleSetClass
 GType gtk_style_set_get_type (void) G_GNUC_CONST;
 
 /* Functions to register style properties */
-void gtk_style_set_register_property (const gchar *property_name,
-                                      GType        type,
-                                      GValue      *default_value);
+void     gtk_style_set_register_property (const gchar  *property_name,
+                                          GType         type,
+                                          const GValue *default_value);
 
 void gtk_style_set_register_property_color  (const gchar *property_name,
                                              GdkColor    *default_value);



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