[gtk+] cellrendererpixbuf: Always follow state
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cellrendererpixbuf: Always follow state
- Date: Thu, 5 Sep 2013 16:49:02 +0000 (UTC)
commit c417bf6d73a4a35b9afc345d10c51f9b1266ed5d
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 5 16:26:46 2013 +0200
cellrendererpixbuf: Always follow state
... not just in PRELIT | SELECTED.
gtk/gtkcellrendererpixbuf.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 4b67ee5..ee1c068 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -536,9 +536,7 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
if (!gtk_widget_get_sensitive (widget) ||
!gtk_cell_renderer_get_sensitive (cell))
state |= GTK_STATE_FLAG_INSENSITIVE;
- else if (priv->follow_state &&
- (flags & (GTK_CELL_RENDERER_SELECTED |
- GTK_CELL_RENDERER_PRELIT)) != 0)
+ else if (priv->follow_state)
state = gtk_cell_renderer_get_state (cell, widget, flags);
gtk_style_context_set_state (context, state);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]