diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-26 01:50:41 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-06-02 02:03:50 +0200 |
commit | 97a07a79f31e571482ffadbd2afe227662effd56 (patch) | |
tree | 9738513746baf4db15ce0f1cc3e0a15cbb66de74 /gtk | |
parent | d14fbf32542ba37650a167886cef6bb796ea7a3b (diff) | |
download | gtk+-97a07a79f31e571482ffadbd2afe227662effd56.tar.gz |
styleproperty: Make keybindings use custom parse/print functions
We don't want to use it for GPtrArray.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkstyleproperty.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index ad85a00046..26372081b8 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -1363,9 +1363,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 @@ -1664,11 +1661,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 * |