[gtk+] GtkStyleSet: Register a "background-image" property.



commit 2794e8d6ddb0b78f11c9abd91ba6880fbdd6f442
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Sep 2 02:12:26 2010 +0200

    GtkStyleSet: Register a "background-image" property.
    
    Ironically, it currently just handles gradients, the name is to conform
    to current CSS gradient implementation trends.

 gtk/gtkstyleset.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c
index a7851ad..fb8486c 100644
--- a/gtk/gtkstyleset.c
+++ b/gtk/gtkstyleset.c
@@ -89,6 +89,8 @@ gtk_style_set_class_init (GtkStyleSetClass *klass)
   gtk_style_set_register_property ("padding", GTK_TYPE_BORDER, NULL, NULL);
   gtk_style_set_register_property ("border", G_TYPE_INT, NULL, NULL);
 
+  gtk_style_set_register_property ("background-image", GDK_TYPE_CAIRO_PATTERN, NULL, NULL);
+
   g_value_init (&val, GTK_TYPE_THEMING_ENGINE);
   g_value_set_object (&val, (GObject *) gtk_theming_engine_load (NULL));
   gtk_style_set_register_property ("engine", GTK_TYPE_THEMING_ENGINE, &val, NULL);



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