[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix new tab being one pixel short under some GTK themes

noreply at xfce.org noreply at xfce.org
Sun Apr 29 22:57:27 CEST 2018


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 e76ed22dc3d394c2404576871efefcd87e0a6f35
Author: Igor <f2404 at yandex.ru>
Date:   Sun Apr 29 16:55:17 2018 -0400

    Fix new tab being one pixel short under some GTK themes
    
    E.g. Greybird. This led to changing the window geometry and losing a row.
    Fixes bug #13263
---
 terminal/terminal-window.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index ec1bfc1..f57ad0d 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -2631,6 +2631,9 @@ terminal_window_add (TerminalWindow *window,
   terminal_return_if_fail (TERMINAL_IS_WINDOW (window));
   terminal_return_if_fail (TERMINAL_IS_SCREEN (screen));
 
+  /* show the terminal screen first: see bug #13263*/
+  gtk_widget_show (GTK_WIDGET (screen));
+
   /* create the tab label */
   label = terminal_screen_get_tab_label (screen);
 
@@ -2655,10 +2658,6 @@ terminal_window_add (TerminalWindow *window,
   if (window->priv->font || window->priv->zoom != TERMINAL_ZOOM_LEVEL_DEFAULT)
     terminal_screen_update_font (screen);
 
-  /* show the terminal screen */
-  gtk_widget_realize (GTK_WIDGET (screen));
-  gtk_widget_show (GTK_WIDGET (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