forked from AuroraMiddleware/gtk
Make GtkCellView use GtkStateFlags
This commit is contained in:
parent
554e649a68
commit
99791d183c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user