[gnome-terminal] screen: When getting system colors, use the right state
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] screen: When getting system colors, use the right state
- Date: Tue, 24 Mar 2015 07:56:12 +0000 (UTC)
commit 9c040a245f8c0837203a2050786c38c02bb08d92
Author: Benjamin Otte <otte redhat com>
Date: Fri Mar 20 13:37:03 2015 +0100
screen: When getting system colors, use the right state
This is relevant because text direction is part of the state these days
so it will never be STATE_FLAG_NORMAL.
https://bugzilla.gnome.org/show_bug.cgi?id=746425
src/terminal-screen.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 1cccea3..d97f11e 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -829,8 +829,8 @@ update_color_scheme (TerminalScreen *screen)
GtkStyleContext *context;
context = gtk_widget_get_style_context (widget);
- gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &theme_fg);
- gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &theme_bg);
+ gtk_style_context_get_color (context, gtk_style_context_get_state (context), &theme_fg);
+ gtk_style_context_get_background_color (context, gtk_style_context_get_state (context), &theme_bg);
if (g_settings_get_boolean (profile, TERMINAL_PROFILE_USE_THEME_COLORS_KEY) ||
(!terminal_g_settings_get_rgba (profile, TERMINAL_PROFILE_FOREGROUND_COLOR_KEY, &fg) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]