From baa634323362e483d634a7f1921ff9d8066db60f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 6 Feb 2011 02:51:20 +0100 Subject: Handle insensitive cell renderer flags in gtk_cell_renderer_get_state() --- gtk/gtkcellrenderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk/gtkcellrenderer.c') diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c index 615e243646..2ecdaf0414 100644 --- a/gtk/gtkcellrenderer.c +++ b/gtk/gtkcellrenderer.c @@ -1701,7 +1701,8 @@ gtk_cell_renderer_get_state (GtkCellRenderer *cell, g_return_val_if_fail (!widget || GTK_IS_WIDGET (widget), 0); if ((widget && !gtk_widget_get_sensitive (widget)) || - (cell && !gtk_cell_renderer_get_sensitive (cell))) + (cell && !gtk_cell_renderer_get_sensitive (cell)) || + (cell_state & GTK_CELL_RENDERER_INSENSITIVE) != 0) state |= GTK_STATE_FLAG_INSENSITIVE; else { -- cgit v1.2.1