diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-29 02:28:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:50 +0100 |
commit | aa4925480dc783faddca9adf9d0f4d6bd96c066e (patch) | |
tree | aa27c8f7d7799cc31b062d5988a37c2f65037f75 /gtk/gtkstylepropertyprivate.h | |
parent | 4d15186e6756e8e757bc30686e7a02433e0291f7 (diff) | |
download | gtk+-aa4925480dc783faddca9adf9d0f4d6bd96c066e.tar.gz |
styleproperty: Pass initial value explicitly
Diffstat (limited to 'gtk/gtkstylepropertyprivate.h')
-rw-r--r-- | gtk/gtkstylepropertyprivate.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index 6cabf25d4b..faa0e5bdf1 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -41,9 +41,6 @@ typedef gboolean (* GtkStyleParseFunc) (GtkCssParser GValue *value); typedef void (* GtkStylePrintFunc) (const GValue *value, GString *string); -typedef void (* GtkStyleDefaultValueFunc) (GtkStyleProperties *props, - GtkStateFlags state, - GValue *value); typedef void (* GtkStyleUnsetFunc) (GtkStyleProperties *props, GtkStateFlags state); @@ -53,13 +50,13 @@ struct _GtkStyleProperty GParamSpec *pspec; GtkStylePropertyFlags flags; guint id; + GValue initial_value; GtkStylePropertyParser property_parse_func; GtkStyleUnpackFunc unpack_func; GtkStylePackFunc pack_func; GtkStyleParseFunc parse_func; GtkStylePrintFunc print_func; - GtkStyleDefaultValueFunc default_value_func; GtkStyleUnsetFunc unset_func; }; @@ -75,7 +72,7 @@ void _gtk_style_property_register (GParamSpec GtkStylePackFunc pack_func, GtkStyleParseFunc parse_func, GtkStylePrintFunc print_func, - GtkStyleDefaultValueFunc default_value_func, + const GValue *initial_value, GtkStyleUnsetFunc unset_func); gboolean _gtk_style_property_is_inherit (const GtkStyleProperty *property); |