mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shellEntry: Remove isPassword Property
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/619
This commit is contained in:
parent
684b918915
commit
a1238a0ea4
1 changed files with 1 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue