[gtk+/gtk-style-context: 144/347] 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/347] GtkThemingEngine: Obey active/selected when rendering text.
- Date: Thu, 11 Nov 2010 01:16:37 +0000 (UTC)
commit 49566673b8d2bec7f6497f10a011c740491eee56
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]