unlockDialog, loginDialog: Connect to the activate signal on the entry

This is the recommended way to connect to an entry's activation binding --
event bubbling is not guaranteed by ClutterText.

https://bugzilla.gnome.org/show_bug.cgi?id=695154
This commit is contained in:
Jasper St. Pierre
2013-03-05 02:04:02 -05:00
parent fbd59631ee
commit 1566a4e607
2 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,7 @@ const UnlockDialog = new Lang.Class({
this._promptEntry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
can_focus: true });
this._promptEntry.clutter_text.connect('activate', Lang.bind(this, this._doUnlock));
this._promptEntry.clutter_text.set_password_char('\u25cf');
ShellEntry.addContextMenu(this._promptEntry, { isPassword: true });
this.setInitialKeyFocus(this._promptEntry);