[gtk+/wip/window-unfocused-fixes: 10/13] cellrendererpixbuf: Set GTK_STATE_FLAG_WINDOW_UNFOCUSED on draw
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/window-unfocused-fixes: 10/13] cellrendererpixbuf: Set GTK_STATE_FLAG_WINDOW_UNFOCUSED on draw
- Date: Tue, 13 Dec 2011 21:04:00 +0000 (UTC)
commit 40872f7d22d3024906da03461235bee14f6981e5
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Dec 13 20:32:38 2011 +0000
cellrendererpixbuf: Set GTK_STATE_FLAG_WINDOW_UNFOCUSED on draw
https://bugzilla.gnome.org/show_bug.cgi?id=666126
gtk/gtkcellrendererpixbuf.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 25820b3..4810865 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -511,6 +511,8 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
GTK_CELL_RENDERER_PRELIT)) != 0)
state = gtk_cell_renderer_get_state (cell, widget, flags);
+ state |= (gtk_widget_get_state_flags (widget) & GTK_STATE_FLAG_WINDOW_UNFOCUSED);
+
gtk_style_context_set_state (context, state);
g_object_get (cell, "is-expander", &is_expander, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]