forked from AuroraMiddleware/gtk
GtkCssProvider: Use default value when handling "none".
This way the default value has a way to override other values in previous GtkStyleProviders when merged.
This commit is contained in:
parent
5e26fb75a0
commit
ee37847952
@ -2964,8 +2964,11 @@ parse_rule (GtkCssProvider *css_provider,
|
||||
|
||||
if (strcmp (value_str, "none") == 0)
|
||||
{
|
||||
/* Remove/unset the current value */
|
||||
g_hash_table_remove (priv->cur_properties, prop);
|
||||
/* Insert the default value, so it has an opportunity
|
||||
* to override other style providers when merged
|
||||
*/
|
||||
g_param_value_set_default (pspec, val);
|
||||
g_hash_table_insert (priv->cur_properties, prop, val);
|
||||
}
|
||||
else if (pspec->value_type == G_TYPE_STRING)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user