From a1238a0ea438fc4111e5f55a98259b65c6e7d1d9 Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Tue, 17 Dec 2019 00:11:49 +0530 Subject: [PATCH] shellEntry: Remove isPassword Property https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/619 --- js/ui/shellEntry.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index 79a38bf56..53aed6049 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -41,24 +41,6 @@ var EntryMenu = class extends PopupMenu.PopupMenu { this._passwordItem = item; } - get isPassword() { - return this._passwordItem != null; - } - - set isPassword(v) { - if (v == this.isPassword) - return; - - if (v) { - this._makePasswordItem(); - this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD; - } else { - this._passwordItem.destroy(); - this._passwordItem = null; - this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL; - } - } - open(animate) { this._updatePasteItem(); this._updateCopyItem(); @@ -144,10 +126,9 @@ function addContextMenu(entry, params) { if (entry.menu) return; - params = Params.parse(params, { isPassword: false, actionMode: Shell.ActionMode.POPUP }); + params = Params.parse(params, { actionMode: Shell.ActionMode.POPUP }); entry.menu = new EntryMenu(entry); - entry.menu.isPassword = params.isPassword; entry._menuManager = new PopupMenu.PopupMenuManager(entry, { actionMode: params.actionMode }); entry._menuManager.addMenu(entry.menu);