[gtk+/gtk-style-context: 146/206] 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: 146/206] GtkThemingEngine: Obey active/selected when rendering text.
- Date: Mon, 23 Aug 2010 17:27:12 +0000 (UTC)
commit 437f963501a13671d9ae500e81e9545c151916fb
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]