summaryrefslogtreecommitdiff
path: root/gtk/gtkstylepropertyprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-12-29 02:28:32 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:50 +0100
commitaa4925480dc783faddca9adf9d0f4d6bd96c066e (patch)
treeaa27c8f7d7799cc31b062d5988a37c2f65037f75 /gtk/gtkstylepropertyprivate.h
parent4d15186e6756e8e757bc30686e7a02433e0291f7 (diff)
downloadgtk+-aa4925480dc783faddca9adf9d0f4d6bd96c066e.tar.gz
styleproperty: Pass initial value explicitly
Diffstat (limited to 'gtk/gtkstylepropertyprivate.h')
-rw-r--r--gtk/gtkstylepropertyprivate.h7
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);