Make GtkCellView use GtkStateFlags

This commit is contained in:
Carlos Garnacho 2011-01-04 02:19:29 +01:00
parent 554e649a68
commit 99791d183c

View File

@ -496,9 +496,9 @@ gtk_cell_view_draw (GtkWidget *widget,
else if (cellview->priv->model) else if (cellview->priv->model)
return FALSE; return FALSE;
if (gtk_widget_get_state (widget) == GTK_STATE_PRELIGHT) if (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_PRELIGHT)
state = GTK_CELL_RENDERER_PRELIT; state = GTK_CELL_RENDERER_PRELIT;
else if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE) else if (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_INSENSITIVE)
state = GTK_CELL_RENDERER_INSENSITIVE; state = GTK_CELL_RENDERER_INSENSITIVE;
else else
state = 0; state = 0;