gdmUtil: separate AuthPrompt out into its own file

It's cleaner to have it in its own file than to cram it into
util.js, so this commit moves it.

https://bugzilla.gnome.org/show_bug.cgi?id=704707
This commit is contained in:
Ray Strode
2013-07-23 20:37:42 -04:00
parent f4100ac507
commit d30cb2d4d9
5 changed files with 299 additions and 287 deletions

View File

@ -19,6 +19,7 @@ const Panel = imports.ui.panel;
const Tweener = imports.ui.tweener;
const UserWidget = imports.ui.userWidget;
const AuthPrompt = imports.gdm.authPrompt;
const Batch = imports.gdm.batch;
const GdmUtil = imports.gdm.util;
const LoginDialog = imports.gdm.loginDialog;
@ -62,7 +63,7 @@ const UnlockDialog = new Lang.Class({
align_axis: Clutter.AlignAxis.BOTH,
factor: 0.5 }));
this._authPrompt = new GdmUtil.AuthPrompt();
this._authPrompt = new AuthPrompt.AuthPrompt();
this._authPrompt.setUser(this._user);
this._authPrompt.setPasswordChar('\u25cf');
this._authPrompt.nextButton.label = _("Unlock");