rpms/gnome-screensaver/F-11 0001-Disable-the-password-entry-when-using-non-password-a.patch, NONE, 1.1 gnome-screensaver.spec, 1.211, 1.212

Bastien Nocera hadess at fedoraproject.org
Fri Jun 26 13:49:31 UTC 2009


Author: hadess

Update of /cvs/pkgs/rpms/gnome-screensaver/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1386

Modified Files:
	gnome-screensaver.spec 
Added Files:
	0001-Disable-the-password-entry-when-using-non-password-a.patch 
Log Message:
* Fri Jun 26 2009 Bastien Nocera <bnocera at redhat.com> 2.26.1-3
- Disable the text entry when using a fingerprint for auth

0001-Disable-the-password-entry-when-using-non-password-a.patch:

--- NEW FILE 0001-Disable-the-password-entry-when-using-non-password-a.patch ---
>From ce391d2167ab1f5a11ca457630cc3221ab1abc53 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Fri, 26 Jun 2009 14:44:26 +0100
Subject: [PATCH] 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);
-- 
1.6.2.5



Index: gnome-screensaver.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-screensaver/F-11/gnome-screensaver.spec,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -p -r1.211 -r1.212
--- gnome-screensaver.spec	29 Apr 2009 15:52:29 -0000	1.211
+++ gnome-screensaver.spec	26 Jun 2009 13:49:01 -0000	1.212
@@ -14,7 +14,7 @@
 Summary: GNOME Screensaver
 Name: gnome-screensaver
 Version: 2.26.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: Amusements/Graphics
 Source0: http://download.gnome.org/sources/gnome-screensaver/2.26/%{name}-%{version}.tar.bz2
@@ -22,6 +22,7 @@ Source1: gnome-screensaver-hide-xscreens
 
 Patch1: gnome-screensaver-2.20.0-default-theme.patch
 Patch2: gnome-screensaver-2.26.0-securitytoken.patch
+Patch3: 0001-Disable-the-password-entry-when-using-non-password-a.patch
 Patch7: gnome-screensaver-2.20.0-blank-by-default.patch
 Patch8: gnome-screensaver-2.20.0-selinux-permit.patch
 
@@ -75,6 +76,7 @@ simple, sane, secure defaults and be wel
 %setup -q
 %patch1 -p1 -b .use-floaters-by-default
 %patch2 -p1 -b .securitytoken
+%patch3 -p1 -b .disable-entry
 %patch7 -p1 -b .blank-by-default
 %patch8 -p1 -b .selinux-permit
 
@@ -146,6 +148,9 @@ fi
 %doc %{_mandir}/man1/*.1.gz
 
 %changelog
+* Fri Jun 26 2009 Bastien Nocera <bnocera at redhat.com> 2.26.1-3
+- Disable the text entry when using a fingerprint for auth
+
 * Wed Apr 29 2009 Matthias Clasen <mclasen at redhat.com> - 2.26.1-2
 - Update the 'hide xscreensaver' hack to work with current
   packages and menus  (#455951)




More information about the fedora-extras-commits mailing list