[gtk+] Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
- Date: Sun, 6 Feb 2011 10:25:34 +0000 (UTC)
commit baa634323362e483d634a7f1921ff9d8066db60f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Feb 6 02:51:20 2011 +0100
Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
gtk/gtkcellrenderer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 615e243..2ecdaf0 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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]