Propagate insensitive state to cell renderers in GtkCellView

If the cell view is insensitive, it needs to properly propagate this
insensitive state to the cell renderers using cell renderer flags.
Merged from maemo-gtk.
This commit is contained in:
Kristian Rietveld 2009-09-04 13:11:19 +02:00
parent 3f306a4042
commit 6f20cf691e

View File

@ -438,6 +438,8 @@ gtk_cell_view_expose (GtkWidget *widget,
if (GTK_WIDGET_STATE (widget) == GTK_STATE_PRELIGHT)
state = GTK_CELL_RENDERER_PRELIT;
else if (GTK_WIDGET_STATE (widget) == GTK_STATE_INSENSITIVE)
state = GTK_CELL_RENDERER_INSENSITIVE;
else
state = 0;