From 225dec69408be6fe4d5ff32d44e2255a28b415ca Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 1 Apr 2013 15:37:38 +0200 Subject: [PATCH] celrendererspinner: Don't use deprecated API --- gtk/gtkcellrendererspinner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c index 35f8760932..34bea0b49b 100644 --- a/gtk/gtkcellrendererspinner.c +++ b/gtk/gtkcellrendererspinner.c @@ -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;