[gnome-builder] terminal: use style context from VteTerminal



commit 3816e5bb46a2f5f2379b0a785f1e76ec4967500b
Author: Christian Hergert <chergert redhat com>
Date:   Tue Apr 10 16:56:44 2018 -0700

    terminal: use style context from VteTerminal
    
    This tracks the colors of the terminal itself, not the container
    view which may be different. It allows CSS to alter the proper
    primary fg/bg colors in the layout stack.

 src/plugins/terminal/gb-terminal-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/terminal/gb-terminal-view.c b/src/plugins/terminal/gb-terminal-view.c
index 726c94885..e488b9c5a 100644
--- a/src/plugins/terminal/gb-terminal-view.c
+++ b/src/plugins/terminal/gb-terminal-view.c
@@ -687,7 +687,7 @@ gb_terminal_view_init (GbTerminalView *self)
 
   gb_terminal_view_actions_init (self);
 
-  style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
+  style_context = gtk_widget_get_style_context (GTK_WIDGET (self->terminal_top));
   gtk_style_context_add_class (style_context, "terminal");
   g_signal_connect_object (style_context,
                            "changed",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]