]> Pileus Git - ~andy/gtk/commitdiff
styleproperties: add an 'icon-shadow' style property
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 21 May 2011 03:48:36 +0000 (23:48 -0400)
committerBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 21:17:09 +0000 (23:17 +0200)
It's a custom property with the same semantics of text-shadow, which
works on icons and icon-like UI elements, such as spinners, arrows and
separators.

gtk/gtkstyleproperty.c

index d707091725f546d12d5754360a390de3e9061f58..7a93c6a19c5d1c8152107c170b7f4593106b53b0 100644 (file)
@@ -2038,6 +2038,18 @@ gtk_style_property_init (void)
                                           NULL,
                                           NULL);
 
+  _gtk_style_property_register           (g_param_spec_boxed ("icon-shadow",
+                                                              "Icon shadow",
+                                                              "Icon shadow",
+                                                              GTK_TYPE_SHADOW, 0),
+                                          GTK_STYLE_PROPERTY_INHERIT,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL);
+
   gtk_style_properties_register_property (NULL,
                                           g_param_spec_int ("margin-top",
                                                             "margin top",