[gtk+/gtk-style-context: 144/251] GtkThemingEngine: Obey	active/selected when rendering text.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/gtk-style-context: 144/251] GtkThemingEngine: Obey	active/selected when rendering text.
- Date: Tue, 12 Oct 2010 02:07:13 +0000 (UTC)
commit 22ad7ebd05149a3577c49aaf195a58a974933da8
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Aug 2 15:51:23 2010 +0200
    GtkThemingEngine: Obey active/selected when rendering text.
 gtk/gtkthemingengine.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 69d048e..65de2cb 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1487,7 +1487,11 @@ gtk_theming_engine_render_layout (GtkThemingEngine *engine,
 
   /* FIXME: Set clipping */
 
-  if (flags & GTK_STATE_FLAG_PRELIGHT)
+  if (flags & GTK_STATE_FLAG_ACTIVE)
+    state = GTK_STATE_ACTIVE;
+  else if (flags & GTK_STATE_FLAG_SELECTED)
+    state = GTK_STATE_SELECTED;
+  else if (flags & GTK_STATE_FLAG_PRELIGHT)
     state = GTK_STATE_PRELIGHT;
   else if (flags & GTK_STATE_FLAG_INSENSITIVE)
     state = GTK_STATE_INSENSITIVE;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]