mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
celrendererspinner: Don't use deprecated API
This commit is contained in:
parent
231520af8f
commit
225dec6940
@ -356,7 +356,7 @@ gtk_cell_renderer_spinner_render (GtkCellRenderer *cellr,
|
||||
return;
|
||||
|
||||
state = GTK_STATE_NORMAL;
|
||||
if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE ||
|
||||
if ((gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_INSENSITIVE) ||
|
||||
!gtk_cell_renderer_get_sensitive (cellr))
|
||||
{
|
||||
state = GTK_STATE_INSENSITIVE;
|
||||
|
Loading…
Reference in New Issue
Block a user