[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:
parent
3e1b1d5789
commit
7555915441
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user