[gtk+/gtk-style-context: 58/260] GtkStyleSet: Make property registration take const GValues.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 58/260] GtkStyleSet: Make property registration take const GValues.
- Date: Wed, 20 Oct 2010 10:26:19 +0000 (UTC)
commit 15fc7437a89c1c454b99adf9cedde51b2f62a890
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]