[gtk+] styleproperties: add an 'icon-shadow' style property



commit ef78d5b730cf70158e9efa306444fa77a450750c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri May 20 23:48:36 2011 -0400

    styleproperties: add an 'icon-shadow' style property
    
    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 |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index d707091..7a93c6a 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]