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/gtkstyleproperties.c | |
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/gtkstyleproperties.c')
-rw-r--r-- | gtk/gtkstyleproperties.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index 458fcaa2fb..24837d55dc 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -319,6 +319,7 @@ gtk_style_properties_register_property (GtkStylePropertyParser parse_func, NULL, NULL, NULL, + NULL, NULL); } @@ -839,6 +840,12 @@ gtk_style_properties_unset_property (GtkStyleProperties *props, return; } + if (node->unset_func) + { + node->unset_func (props, state); + return; + } + priv = props->priv; prop = g_hash_table_lookup (priv->properties, node); |