[Xfce4-commits] [apps/xfce4-terminal] 01/01: Properly clear last_active_tab

noreply at xfce.org noreply at xfce.org
Mon Apr 1 22:01:32 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 12a6523a3d05bb16947316a9efe3eae37ac37ef1
Author: Igor <f2404 at yandex.ru>
Date:   Mon Apr 1 16:00:38 2019 -0400

    Properly clear last_active_tab
    
    Bug #15201
---
 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 9767fb8..54bb4ef 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1303,6 +1303,10 @@ terminal_window_notebook_page_removed (GtkNotebook    *notebook,
       return;
     }
 
+  /* clear last_active tab if it has just been closed */
+  if (child == GTK_WIDGET (window->priv->last_active))
+    window->priv->last_active = NULL;
+
   /* show the tabs when needed */
   terminal_window_notebook_show_tabs (window);
 
@@ -2678,10 +2682,6 @@ terminal_window_do_close_tab (TerminalScreen *screen,
       gtk_notebook_set_current_page (notebook, page_num);
     }
 
-  /* clean last_active if we've just closed it */
-  if (screen == window->priv->last_active)
-    window->priv->last_active = NULL;
-
   gtk_widget_destroy (GTK_WIDGET (screen));
 }
 

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


More information about the Xfce4-commits mailing list