GtkStyleSet: Make property registration take const GValues.

This commit is contained in:
Carlos Garnacho 2010-04-11 19:52:58 +02:00
parent fdcda4b356
commit 7647deb417
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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);