windowMenu: Fix typo

Closing windows is done with delete(), not close() ...
This commit is contained in:
Florian Müllner 2014-05-21 19:53:50 +02:00
parent 264a51de3f
commit 4c7b992c36

View File

@ -115,7 +115,7 @@ const WindowMenu = new Lang.Class({
this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
item = this.addAction(_("Close"), Lang.bind(this, function(event) { item = this.addAction(_("Close"), Lang.bind(this, function(event) {
window.close(event.get_time()); window.delete(event.get_time());
})); }));
if (!window.can_close()) if (!window.can_close())
item.setSensitive(false); item.setSensitive(false);