From 61525f0662433834733688598c912ed29687d28c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 26 Sep 2011 15:48:53 +0200 Subject: [PATCH] styleproperty: Use the long form to register background-color We want to set a default value. --- gtk/gtkstyleproperty.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index c907bfd65a..483feaab02 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -2551,12 +2551,18 @@ gtk_style_property_init (void) NULL, NULL, NULL); - - gtk_style_properties_register_property (NULL, - g_param_spec_boxed ("background-color", - "Background color", - "Background color", - GDK_TYPE_RGBA, 0)); + _gtk_style_property_register (g_param_spec_boxed ("background-color", + "Background color", + "Background color", + GDK_TYPE_RGBA, 0), + 0, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL); _gtk_style_property_register (g_param_spec_boxed ("font-family", "Font family",