cellview: Stop checking for sensitivity on draw

This is needless since GtkCellRenderer does it consistently before rendering.
This commit is contained in:
Rui Matos 2011-12-16 23:04:49 +00:00
parent 70970146ca
commit ee669a1b51

View File

@ -790,8 +790,6 @@ gtk_cell_view_draw (GtkWidget *widget,
if (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_PRELIGHT)
state = GTK_CELL_RENDERER_PRELIT;
else if (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_INSENSITIVE)
state = GTK_CELL_RENDERER_INSENSITIVE;
else
state = 0;