[gnome-screensaver] Disable the password entry when using non-password auth
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-screensaver] Disable the password entry when using non-password auth
- Date: Fri, 26 Jun 2009 14:54:44 +0000 (UTC)
commit ce391d2167ab1f5a11ca457630cc3221ab1abc53
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 26 14:44:26 2009 +0100
Disable the password entry when using non-password auth
The code to hide the text entry when using a non-password authentication
was disabled, but no code replaced it, so the entry is still accessible
when using a fingerprint reader as auth.
With help from Ray Strode
src/gs-lock-plug.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index d31365a..0b36a7c 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -1194,6 +1194,7 @@ gs_lock_plug_enable_prompt (GSLockPlug *plug,
gtk_label_set_text (GTK_LABEL (plug->priv->auth_prompt_label), message);
gtk_widget_show (plug->priv->auth_prompt_label);
gtk_entry_set_visibility (GTK_ENTRY (plug->priv->auth_prompt_entry), visible);
+ gtk_widget_set_sensitive (plug->priv->auth_prompt_entry, TRUE);
gtk_widget_show (plug->priv->auth_prompt_entry);
if (! GTK_WIDGET_HAS_FOCUS (plug->priv->auth_prompt_entry)) {
@@ -1216,6 +1217,7 @@ gs_lock_plug_disable_prompt (GSLockPlug *plug)
/* gtk_widget_hide (plug->priv->auth_prompt_entry); */
/* gtk_widget_hide (plug->priv->auth_prompt_label); */
gtk_widget_set_sensitive (plug->priv->auth_unlock_button, FALSE);
+ gtk_widget_set_sensitive (plug->priv->auth_prompt_entry, FALSE);
/* gtk_widget_hide (plug->priv->auth_unlock_button); */
gtk_widget_grab_default (plug->priv->auth_cancel_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]