[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
This commit is contained in:
Florian Müllner 2010-02-07 03:06:50 +01:00
parent 3e1b1d5789
commit 7555915441

View File

@ -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();
},