stylecontext: Set state flags on widget paths

Set the widget path state flags with the state flags of the style
context.

We do not update the state flags but replace the previous one because we
want to be able to have save()/restore() unset state flags.
This commit is contained in:
Benjamin Otte
2014-07-18 20:12:39 +02:00
parent 09dd0ffcd0
commit be09e0ed4a

View File

@@ -747,6 +747,10 @@ G_GNUC_END_IGNORE_DEPRECATIONS
g_quark_to_string (quark));
}
/* Set widget state */
gtk_widget_path_iter_set_state (path, pos,
gtk_widget_path_iter_get_state (path, pos) | info->state_flags);
return path;
}