From 2794e8d6ddb0b78f11c9abd91ba6880fbdd6f442 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 2 Sep 2010 02:12:26 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c index a7851ad66e..fb8486c475 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);