Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()

This commit is contained in:
Carlos Garnacho 2011-02-06 02:51:20 +01:00
parent 217d3fd796
commit baa6343233

View File

@ -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
{