[Xfce4-commits] [apps/xfce4-terminal] 01/01: Properly apply zoom factor when creating new tab
noreply at xfce.org
noreply at xfce.org
Fri Aug 9 20:33:51 CEST 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit 334591ee686b4901b32f4a35084c72bdff996ce6
Author: Igor <f2404 at yandex.ru>
Date: Fri Aug 9 14:33:04 2019 -0400
Properly apply zoom factor when creating new tab
Fixes bug #15785
---
terminal/terminal-window.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index ca39c79..d6c22ff 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1256,6 +1256,10 @@ terminal_window_notebook_page_added (GtkNotebook *notebook,
terminal_screen_get_size (window->priv->active, &w, &h);
terminal_screen_set_size (screen, w, h);
+ /* match the zoom */
+ if (window->priv->font || window->priv->zoom != TERMINAL_ZOOM_LEVEL_DEFAULT)
+ terminal_screen_update_font (screen);
+
/* show the tabs when needed */
terminal_window_notebook_show_tabs (window);
}
@@ -2792,10 +2796,6 @@ terminal_window_add (TerminalWindow *window,
if (window->priv->scrollbar_visibility != TERMINAL_VISIBILITY_DEFAULT)
terminal_screen_update_scrolling_bar (screen);
- /* update screen font from window */
- if (window->priv->font || window->priv->zoom != TERMINAL_ZOOM_LEVEL_DEFAULT)
- terminal_screen_update_font (screen);
-
/* switch to the new tab */
gtk_notebook_set_current_page (GTK_NOTEBOOK (window->priv->notebook), page);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list