]> Pileus Git - ~andy/gtk/commitdiff
stylepropertyimpl: Make shadows unqueryable
authorBenjamin Otte <otte@redhat.com>
Tue, 27 Mar 2012 23:07:46 +0000 (01:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Apr 2012 06:59:13 +0000 (08:59 +0200)
Normal APIs couldn't use GtkShadow anyway as the type was private.

gtk/gtkcssstylepropertyimpl.c

index 510b4a06bcd06f332684fda6fa06afa0909562ba..4f97622de3222abd3342478932263b3c2f0ec015 100644 (file)
@@ -1307,32 +1307,32 @@ _gtk_css_style_property_init_properties (void)
                                                                         PANGO_WEIGHT_NORMAL));
 
   gtk_css_style_property_register        ("text-shadow",
-                                          GTK_TYPE_SHADOW,
+                                          G_TYPE_NONE,
                                           GTK_STYLE_PROPERTY_INHERIT,
                                           shadow_value_parse,
                                           shadow_value_print,
                                           shadow_value_compute,
-                                          query_simple,
+                                          NULL,
                                           NULL,
                                           _gtk_css_value_new_take_shadow (NULL));
 
   gtk_css_style_property_register        ("icon-shadow",
-                                          GTK_TYPE_SHADOW,
+                                          G_TYPE_NONE,
                                           GTK_STYLE_PROPERTY_INHERIT,
                                           shadow_value_parse,
                                           shadow_value_print,
                                           shadow_value_compute,
-                                          query_simple,
+                                          NULL,
                                           NULL,
                                           _gtk_css_value_new_take_shadow (NULL));
 
   gtk_css_style_property_register        ("box-shadow",
-                                          GTK_TYPE_SHADOW,
+                                          G_TYPE_NONE,
                                           0,
                                           shadow_value_parse,
                                           shadow_value_print,
                                           shadow_value_compute,
-                                          query_simple,
+                                          NULL,
                                           NULL,
                                           _gtk_css_value_new_take_shadow (NULL));