styleproperties: Add an unset vfunc to style properties

This makes unsetting work for shorthands.
This commit is contained in:
Benjamin Otte
2011-07-19 11:11:12 +02:00
parent fd705ce7c7
commit 68ebc77a9a
3 changed files with 45 additions and 7 deletions

View File

@ -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);