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