[gnome-terminal] app: Don't change the title on tab labels that no longer exist



commit 6c1ece7dab2a11b7e0c6561f89cf83510abb51bf
Author: Egmont Koblinger <egmont gmail com>
Date:   Wed May 28 12:16:41 2014 +0200

    app: Don't change the title on tab labels that no longer exist
    
    This fixes a potential crash when a tab is moved to another window,
    and later the title of that terminal changes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730389

 src/terminal-tab-label.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-tab-label.c b/src/terminal-tab-label.c
index a83d94f..6e9f064 100644
--- a/src/terminal-tab-label.c
+++ b/src/terminal-tab-label.c
@@ -213,8 +213,11 @@ terminal_tab_label_constructor (GType type,
 static void
 terminal_tab_label_finalize (GObject *object)
 {
-//   TerminalTabLabel *tab_label = TERMINAL_TAB_LABEL (object);
+  TerminalTabLabel *tab_label = TERMINAL_TAB_LABEL (object);
 
+  g_signal_handlers_disconnect_by_func (tab_label->priv->screen,
+                                        G_CALLBACK (sync_tab_label),
+                                        tab_label->priv->label);
   G_OBJECT_CLASS (terminal_tab_label_parent_class)->finalize (object);
 }
 


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