[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix menubar text not visible in some themes

noreply at xfce.org noreply at xfce.org
Tue Sep 20 15:55:13 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit d1091f42c39d41ca36c5d940c98347f642a4de26
Author: Igor <f2404 at yandex.ru>
Date:   Tue Sep 20 16:55:08 2016 +0300

    Fix menubar text not visible in some themes
---
 terminal/terminal-window.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index f0518b4..7752eaa 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -2171,13 +2171,11 @@ terminal_window_make_child_opaque (GtkWidget *child,
                                    GtkWidget *window)
 {
   GtkStyleContext *context;
-  GtkStateFlags    state;
   GdkRGBA          bg;
 
   context = gtk_widget_get_style_context (window);
-  state = gtk_widget_get_state_flags (window);
-  gtk_style_context_get_background_color (context, state, &bg);
-  gtk_widget_override_background_color (child, state, &bg);
+  gtk_style_context_get_background_color (context, GTK_STATE_FLAG_ACTIVE, &bg);
+  gtk_widget_override_background_color (child, GTK_STATE_FLAG_ACTIVE, &bg);
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list