[gnome-shell] [Overview] Update window titles when they change



commit 7555915441fbc99949bb4a6e8dfd036a00361cc9
Author: Florian Müllner <fmuellner src gnome org>
Date:   Sun Feb 7 03:06:50 2010 +0100

    [Overview] Update window titles when they change
    
    Have window title captions in the overview window picker update on
    window title changes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=609206

 js/ui/workspace.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 9a7f019..75d0d0a 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -328,6 +328,11 @@ WindowOverlay.prototype = {
         title.clutter_text.ellipsize = Pango.EllipsizeMode.END;
         title._spacing = 0;
 
+        this._updateCaptionId = metaWindow.connect('notify::title',
+            Lang.bind(this, function(w) {
+                this.title.text = w.title;
+            }));
+
         let button = new St.Bin({ style_class: "window-close",
                                   reactive: true });
         button.connect('style-changed',
@@ -455,6 +460,7 @@ WindowOverlay.prototype = {
             Mainloop.source_remove(this._idleToggleCloseId);
             this._idleToggleCloseId = 0;
         }
+        this._windowClone.metaWindow.disconnect(this._updateCaptionId);
         this.title.destroy();
         this.closeButton.destroy();
     },



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