[gtk+] gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivity
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivity
- Date: Sun, 6 Feb 2011 13:48:21 +0000 (UTC)
commit e39e8acd6754a865d904737bb6d2679891e3a660
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 6 14:47:58 2011 +0100
gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivity
gtk/gtkcellrenderer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index b0f7937..6276630 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -1700,7 +1700,7 @@ gtk_cell_renderer_get_state (GtkCellRenderer *cell,
g_return_val_if_fail (!cell || GTK_IS_CELL_RENDERER (cell), 0);
g_return_val_if_fail (!widget || GTK_IS_WIDGET (widget), 0);
- if ((widget && !gtk_widget_get_sensitive (widget)) ||
+ if ((widget && !gtk_widget_is_sensitive (widget)) ||
(cell && !gtk_cell_renderer_get_sensitive (cell)) ||
(cell_state & GTK_CELL_RENDERER_INSENSITIVE) != 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]