]> Pileus Git - ~andy/gtk/commitdiff
styleproperty: Make keybindings use custom parse/print functions
authorBenjamin Otte <otte@redhat.com>
Wed, 25 May 2011 23:50:41 +0000 (01:50 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Jun 2011 00:03:50 +0000 (02:03 +0200)
We don't want to use it for GPtrArray.

gtk/gtkstyleproperty.c

index ad85a00046afc417e5751aa735b52a09eeeeb696..26372081b8ce17b47865c2fadd047b570e114a8e 100644 (file)
@@ -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 *