diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-29 14:04:19 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:50 +0100 |
commit | 5a815e21591639cf2901d6c8529cf6b6bba54ab4 (patch) | |
tree | 3b7f1d59b1a15118ea21475a8f9034babff1c730 | |
parent | 242893a0315990c11bf5ce8908897e49df093081 (diff) | |
download | gtk+-5a815e21591639cf2901d6c8529cf6b6bba54ab4.tar.gz |
styleproperty: Add _gtk_style_property_get_initial_value()
-rw-r--r-- | gtk/gtkstyleproperty.c | 8 | ||||
-rw-r--r-- | gtk/gtkstylepropertyprivate.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index 518a0e42c3..5eade848a0 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -2605,6 +2605,14 @@ _gtk_style_property_resolve (const GtkStyleProperty *property, g_value_copy (val, val_out); } +const GValue * +_gtk_style_property_get_initial_value (const GtkStyleProperty *property) +{ + g_return_val_if_fail (property != NULL, NULL); + + return &property->initial_value; +} + gboolean _gtk_style_property_is_shorthand (const GtkStyleProperty *property) { diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index faa0e5bdf1..e34c20859b 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -82,6 +82,8 @@ void _gtk_style_property_default_value (const GtkStyleProper GtkStyleProperties *properties, GtkStateFlags state, GValue *value); +const GValue * _gtk_style_property_get_initial_value + (const GtkStyleProperty *property); void _gtk_style_property_resolve (const GtkStyleProperty *property, GtkStyleProperties *properties, |