themingengine: use gtk_icon_source_get_state_wildcarded()

A recent refactor of this code missed a check for the wildcarded state
on the icon source.
This commit is contained in:
Cosimo Cecchi 2013-08-04 09:19:03 +02:00
parent eece18d21d
commit 3ebde5303a

View File

@ -2728,6 +2728,10 @@ gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine,
scaled = g_object_ref (base_pixbuf);
/* If the state was wildcarded, then generate a state. */
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
wildcarded = gtk_icon_source_get_state_wildcarded (source);
G_GNUC_END_IGNORE_DEPRECATIONS;
if (wildcarded)
{
if (state & GTK_STATE_FLAG_INSENSITIVE)