Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Amrit Borah
xfce4-terminal
Commits
9afc538c
Commit
9afc538c
authored
Oct 14, 2022
by
Amrit Borah
Browse files
fix color scheme change on switching profiles in another window
parent
3f669ad1
Pipeline
#17707
passed with stages
in 1 minute and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
terminal/terminal-screen.c
View file @
9afc538c
...
...
@@ -565,9 +565,20 @@ terminal_screen_unrealize (GtkWidget *widget)
static
void
terminal_screen_style_updated
(
GtkWidget
*
widget
)
{
TerminalScreen
*
screen
=
TERMINAL_SCREEN
(
widget
);
gchar
*
active_profile
;
terminal_return_if_fail
(
TERMINAL_IS_PREFERENCES
(
screen
->
preferences
));
(
*
GTK_WIDGET_CLASS
(
terminal_screen_parent_class
)
->
style_updated
)
(
widget
);
terminal_screen_update_colors
(
TERMINAL_SCREEN
(
widget
));
active_profile
=
terminal_preferences_get_active_profile
(
screen
->
preferences
);
/* update colors iff the change comes from the profile that screen is currently using */
if
(
g_strcmp0
(
active_profile
,
screen
->
profile
)
==
0
)
terminal_screen_update_colors
(
TERMINAL_SCREEN
(
widget
));
g_free
(
active_profile
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment