summaryrefslogtreecommitdiff
path: root/gtk/gtkstyleproperties.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-07-19 11:11:12 +0200
committerBenjamin Otte <otte@redhat.com>2011-07-19 11:58:22 +0200
commit68ebc77a9a64b8bd92dd620b5f14e592dbcc55d2 (patch)
tree5230e4993e8a6759e61b15564bea2793fd99c41a /gtk/gtkstyleproperties.c
parentfd705ce7c72930da9739183a4a251a7f3db0bb3c (diff)
downloadgtk+-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.c7
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);