diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2011-02-06 02:51:20 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2011-02-06 11:21:42 +0100 |
commit | baa634323362e483d634a7f1921ff9d8066db60f (patch) | |
tree | 0c50ae0a515e9de28f3f4e024f36f15d966e3101 /gtk/gtkcellrenderer.c | |
parent | 217d3fd796c29c01dac9420b5ff599d2a55d9d73 (diff) | |
download | gtk+-baa634323362e483d634a7f1921ff9d8066db60f.tar.gz |
Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
Diffstat (limited to 'gtk/gtkcellrenderer.c')
-rw-r--r-- | gtk/gtkcellrenderer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |