[gtk+/gtk-style-context] Register the border-image property



commit 15dbbace033a490768285e1d21049b4204168e9b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Sep 24 22:02:39 2010 +0200

    Register the border-image property
    
    It will contain a 9-sliced image, so it can be rendered as rectangles with any
    dimensions.

 gtk/gtkstyleset.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c
index cd1c8df..59ac9f5 100644
--- a/gtk/gtkstyleset.c
+++ b/gtk/gtkstyleset.c
@@ -27,6 +27,7 @@
 #include "gtkprivate.h"
 #include "gtkthemingengine.h"
 #include "gtkanimationdescription.h"
+#include "gtk9slice.h"
 #include "gtkintl.h"
 
 typedef struct GtkStyleSetPrivate GtkStyleSetPrivate;
@@ -90,6 +91,7 @@ gtk_style_set_class_init (GtkStyleSetClass *klass)
   gtk_style_set_register_property ("border", G_TYPE_INT, NULL, NULL);
 
   gtk_style_set_register_property ("background-image", GDK_TYPE_CAIRO_PATTERN, NULL, NULL);
+  gtk_style_set_register_property ("border-image", GTK_TYPE_9SLICE, NULL, NULL);
 
   g_value_init (&val, GTK_TYPE_THEMING_ENGINE);
   g_value_set_object (&val, (GObject *) gtk_theming_engine_load (NULL));



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