diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-31 03:54:17 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:51 +0100 |
commit | 78dc75a350633c1c11dd555320ebb80575bcf586 (patch) | |
tree | 0135b727c5be2b410f970b8d4efd6e77d7b027a6 /gtk/gtkstylepropertyprivate.h | |
parent | 3e24b5dbbec0161aa28dc32aac52d6c9e8f9a980 (diff) | |
download | gtk+-78dc75a350633c1c11dd555320ebb80575bcf586.tar.gz |
styleproperty: Make this an object
Diffstat (limited to 'gtk/gtkstylepropertyprivate.h')
-rw-r--r-- | gtk/gtkstylepropertyprivate.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index 4f5902ab92..263cc9f79b 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -25,7 +25,16 @@ G_BEGIN_DECLS -typedef struct _GtkStyleProperty GtkStyleProperty; +#define GTK_TYPE_STYLE_PROPERTY (_gtk_style_property_get_type ()) +#define GTK_STYLE_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_STYLE_PROPERTY, GtkStyleProperty)) +#define GTK_STYLE_PROPERTY_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_STYLE_PROPERTY, GtkStylePropertyClass)) +#define GTK_IS_STYLE_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_STYLE_PROPERTY)) +#define GTK_IS_STYLE_PROPERTY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_STYLE_PROPERTY)) +#define GTK_STYLE_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STYLE_PROPERTY, GtkStylePropertyClass)) + +typedef struct _GtkStyleProperty GtkStyleProperty; +typedef struct _GtkStylePropertyClass GtkStylePropertyClass; + typedef enum { GTK_STYLE_PROPERTY_INHERIT = (1 << 0) } GtkStylePropertyFlags; @@ -44,9 +53,10 @@ typedef void (* GtkStylePrintFunc) (const GValue typedef void (* GtkStyleUnsetFunc) (GtkStyleProperties *props, GtkStateFlags state); - struct _GtkStyleProperty { + GObject parent; + GParamSpec *pspec; GtkStylePropertyFlags flags; guint id; @@ -60,6 +70,13 @@ struct _GtkStyleProperty GtkStyleUnsetFunc unset_func; }; +struct _GtkStylePropertyClass +{ + GObjectClass parent_class; +}; + +GType _gtk_style_property_get_type (void) G_GNUC_CONST; + guint _gtk_style_property_get_count (void); const GtkStyleProperty * _gtk_style_property_get (guint id); |