shorthand: Add a property for all subproperties

This commit is contained in:
Benjamin Otte
2011-12-31 16:31:25 +01:00
parent 4383701e25
commit 2128b356b2
3 changed files with 91 additions and 0 deletions

View File

@ -23,6 +23,8 @@
#include <glib-object.h>
#include "gtk/gtkcssparserprivate.h"
#include "gtk/gtkcssstylepropertyprivate.h"
#include "gtk/gtkstylepropertyprivate.h"
G_BEGIN_DECLS
@ -40,6 +42,8 @@ typedef struct _GtkCssShorthandPropertyClass GtkCssShorthandPropertyClass;
struct _GtkCssShorthandProperty
{
GtkStyleProperty parent;
GPtrArray *subproperties;
};
struct _GtkCssShorthandPropertyClass
@ -51,6 +55,10 @@ void _gtk_css_shorthand_property_init_properties (void);
GType _gtk_css_shorthand_property_get_type (void) G_GNUC_CONST;
GtkCssStyleProperty * _gtk_css_shorthand_property_get_subproperty (GtkCssShorthandProperty *shorthand,
guint property);
guint _gtk_css_shorthand_property_get_n_subproperties (GtkCssShorthandProperty *shorthand);
G_END_DECLS