[gtk+/wip/unfocused-fixes: 8/9] textdisplay: Use the widget state flags as a base for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes: 8/9] textdisplay: Use the widget state flags as a base for drawing
- Date: Wed, 21 Dec 2011 23:52:56 +0000 (UTC)
commit 4714bf5f8438ec3125c08de77e0a724a9896aae2
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Dec 21 23:27:15 2011 +0000
textdisplay: Use the widget state flags as a base for drawing
gtk/gtktextdisplay.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index cda2814..b81ade7 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -584,10 +584,9 @@ render_para (GtkTextRenderer *text_renderer,
screen_width = line_display->total_width;
context = gtk_widget_get_style_context (text_renderer->widget);
+ state = gtk_widget_get_state_flags (text_renderer->widget);
- state = GTK_STATE_FLAG_SELECTED;
- if (gtk_widget_has_focus (text_renderer->widget))
- state |= GTK_STATE_FLAG_FOCUSED;
+ state |= GTK_STATE_FLAG_SELECTED;
gtk_style_context_get_background_color (context, state, &selection);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]