diff options
author | Benjamin Otte <otte@redhat.com> | 2011-07-19 11:11:12 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-07-19 11:58:22 +0200 |
commit | 68ebc77a9a64b8bd92dd620b5f14e592dbcc55d2 (patch) | |
tree | 5230e4993e8a6759e61b15564bea2793fd99c41a /gtk/gtkstylepropertyprivate.h | |
parent | fd705ce7c72930da9739183a4a251a7f3db0bb3c (diff) | |
download | gtk+-68ebc77a9a64b8bd92dd620b5f14e592dbcc55d2.tar.gz |
styleproperties: Add an unset vfunc to style properties
This makes unsetting work for shorthands.
Diffstat (limited to 'gtk/gtkstylepropertyprivate.h')
-rw-r--r-- | gtk/gtkstylepropertyprivate.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index db8706843f..aef18b8893 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -42,6 +42,8 @@ typedef void (* GtkStylePrintFunc) (const GValue typedef void (* GtkStyleDefaultValueFunc) (GtkStyleProperties *props, GtkStateFlags state, GValue *value); +typedef void (* GtkStyleUnsetFunc) (GtkStyleProperties *props, + GtkStateFlags state); struct _GtkStyleProperty @@ -55,6 +57,7 @@ struct _GtkStyleProperty GtkStyleParseFunc parse_func; GtkStylePrintFunc print_func; GtkStyleDefaultValueFunc default_value_func; + GtkStyleUnsetFunc unset_func; }; const GtkStyleProperty * _gtk_style_property_lookup (const char *name); @@ -66,7 +69,8 @@ void _gtk_style_property_register (GParamSpec GtkStylePackFunc pack_func, GtkStyleParseFunc parse_func, GtkStylePrintFunc print_func, - GtkStyleDefaultValueFunc default_value_func); + GtkStyleDefaultValueFunc default_value_func, + GtkStyleUnsetFunc unset_func); gboolean _gtk_style_property_is_inherit (const GtkStyleProperty *property); |