[gtk+] Propagate insensitive state to cell renderers in GtkCellView
- From: Kristian Rietveld <kristian src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Propagate insensitive state to cell renderers in GtkCellView
- Date: Fri, 4 Sep 2009 12:09:46 +0000 (UTC)
commit 6f20cf691ed473228b49912096a31a112ffecee9
Author: Kristian Rietveld <kris gtk org>
Date: Fri Sep 4 13:11:19 2009 +0200
Propagate insensitive state to cell renderers in GtkCellView
If the cell view is insensitive, it needs to properly propagate this
insensitive state to the cell renderers using cell renderer flags.
Merged from maemo-gtk.
gtk/gtkcellview.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 3fa0ad9..5f8fe39 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -438,6 +438,8 @@ gtk_cell_view_expose (GtkWidget *widget,
if (GTK_WIDGET_STATE (widget) == GTK_STATE_PRELIGHT)
state = GTK_CELL_RENDERER_PRELIT;
+ else if (GTK_WIDGET_STATE (widget) == GTK_STATE_INSENSITIVE)
+ state = GTK_CELL_RENDERER_INSENSITIVE;
else
state = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]