From: John Darrington Date: Tue, 28 Jul 2015 03:16:56 +0000 (+0200) Subject: psppire_cell_renderer_button_render: Avoid deprecation warning X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d7de6899af8a38a0287ca70202b79b8d1983375;p=pspp psppire_cell_renderer_button_render: Avoid deprecation warning --- diff --git a/src/ui/gui/psppire-cell-renderer-button.c b/src/ui/gui/psppire-cell-renderer-button.c index 5a20ff5a8d..6b25b3fa3b 100644 --- a/src/ui/gui/psppire-cell-renderer-button.c +++ b/src/ui/gui/psppire-cell-renderer-button.c @@ -204,7 +204,7 @@ psppire_cell_renderer_button_render (GtkCellRenderer *cell, state_type = GTK_STATE_PRELIGHT; else { - if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE) + if (gtk_widget_get_state_flags (widget) == GTK_STATE_FLAG_INSENSITIVE) state_type = GTK_STATE_INSENSITIVE; else state_type = GTK_STATE_NORMAL;