[gnome-shell] shellEntry: Remove isPassword Property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shellEntry: Remove isPassword Property
- Date: Tue, 17 Dec 2019 22:18:01 +0000 (UTC)
commit a1238a0ea438fc4111e5f55a98259b65c6e7d1d9
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Dec 17 00:11:49 2019 +0530
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 79a38bf56c..53aed60496 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]