From 7555915441fbc99949bb4a6e8dfd036a00361cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 7 Feb 2010 03:06:50 +0100 Subject: [PATCH] [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 file changed, 6 insertions(+) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 9a7f019bb..75d0d0a4b 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(); },