diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c index 35f8760932..34bea0b49b 100644 --- a/gtk/gtkcellrendererspinner.c +++ b/gtk/gtkcellrendererspinner.c @@ -356,7 +356,7 @@ gtk_cell_renderer_spinner_render (GtkCellRenderer *cellr, return; state = GTK_STATE_NORMAL; - if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE || + if ((gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_INSENSITIVE) || !gtk_cell_renderer_get_sensitive (cellr)) { state = GTK_STATE_INSENSITIVE;