[gtk+/nth-child: 18/22] styleproperty: Make keybindings use custom parse/print functions
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/nth-child: 18/22] styleproperty: Make keybindings use custom parse/print functions
- Date: Thu, 26 May 2011 03:32:05 +0000 (UTC)
commit 837f85c5a7fa0c43a939b002fabe06c264cd9fae
Author: Benjamin Otte <otte redhat com>
Date: Thu May 26 01:50:41 2011 +0200
styleproperty: Make keybindings use custom parse/print functions
We don't want to use it for GPtrArray.
gtk/gtkstyleproperty.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index 787de81..a4fb8e8 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1362,9 +1362,6 @@ css_string_funcs_init (void)
register_conversion_function (G_TYPE_FLAGS,
flags_value_parse,
flags_value_print);
- register_conversion_function (G_TYPE_PTR_ARRAY,
- bindings_value_parse,
- bindings_value_print);
}
gboolean
@@ -1663,11 +1660,15 @@ gtk_style_property_init (void)
GTK_TYPE_ANIMATION_DESCRIPTION, 0));
/* Private property holding the binding sets */
- gtk_style_properties_register_property (NULL,
- g_param_spec_boxed ("gtk-key-bindings",
+ _gtk_style_property_register (g_param_spec_boxed ("gtk-key-bindings",
"Key bindings",
"Key bindings",
- G_TYPE_PTR_ARRAY, 0));
+ G_TYPE_PTR_ARRAY, 0),
+ NULL,
+ NULL,
+ NULL,
+ bindings_value_parse,
+ bindings_value_print);
}
const GtkStyleProperty *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]