mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
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)
|
||||
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;
|
||||
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;
|
||||
else
|
||||
state = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user