[gnome-shell] util: add shell entry menu to auth prompt
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] util: add shell entry menu to auth prompt
- Date: Thu, 18 Jul 2013 19:41:12 +0000 (UTC)
commit be4f259b71aafc5a1d1959a31e86ca3f8fd6af26
Author: Ray Strode <rstrode redhat com>
Date: Thu Jul 18 14:40:10 2013 -0400
util: add shell entry menu to auth prompt
This brings us parity with the unlock dialog, and is a prerequisite
for eventually moving the unlock dialog over to using the auth
prompt.
https://bugzilla.gnome.org/show_bug.cgi?id=702308
js/gdm/util.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 18866de..aec4992 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -13,6 +13,7 @@ const Batch = imports.gdm.batch;
const Fprint = imports.gdm.fingerprint;
const Main = imports.ui.main;
const Params = imports.misc.params;
+const ShellEntry = imports.ui.shellEntry;
const Tweener = imports.ui.tweener;
const UserWidget = imports.ui.userWidget;
@@ -511,6 +512,8 @@ const AuthPrompt = new Lang.Class({
x_align: St.Align.START });
this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
can_focus: true });
+ ShellEntry.addContextMenu(this._entry, { isPassword: true });
+
this.actor.add(this._entry,
{ expand: true,
x_fill: true,
@@ -671,6 +674,7 @@ const AuthPrompt = new Lang.Class({
setPasswordChar: function(passwordChar) {
this._entry.clutter_text.set_password_char(passwordChar);
+ this._entry.menu.isPassword = passwordChar != '';
},
setQuestion: function(question) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]