diff options
author | Ajay Garg <ajay@activitycentral.com> | 2012-08-10 10:51:29 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2012-08-10 10:51:29 (GMT) |
commit | f69e10f18ef9ba35e3ec11b62291f10c34f7e366 (patch) | |
tree | 6db19b5838efa8cc40dc177ebee6f35d2808dd2c | |
parent | e5a97d704e2d83be7aea8246aa9d2254e7db3d30 (diff) |
au#1620: Show proxy-password in "hidden" form.
-rw-r--r-- | rpms/sugar/0120-au-1620-Show-proxy-password-in-hidden-form.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/rpms/sugar/0120-au-1620-Show-proxy-password-in-hidden-form.patch b/rpms/sugar/0120-au-1620-Show-proxy-password-in-hidden-form.patch new file mode 100644 index 0000000..1579a0f --- /dev/null +++ b/rpms/sugar/0120-au-1620-Show-proxy-password-in-hidden-form.patch @@ -0,0 +1,43 @@ +From 761d8351b80797668a67c583eec0a840b9e92f34 Mon Sep 17 00:00:00 2001 +From: Ajay Garg <ajay@activitycentral.com> +Date: Fri, 10 Aug 2012 16:16:44 +0530 +Subject: [suga PATCH] au#1620: Show proxy-password in "hidden" form. +Organization: Sugar Labs Foundation +Signed-off-by: Ajay Garg <ajay@activitycentral.com> +--- + + + extensions/cpsection/network/view.py | 10 +++++++++- + 1 files changed, 9 insertions(+), 1 deletions(-) + +diff --git a/extensions/cpsection/network/view.py b/extensions/cpsection/network/view.py +index c3aa5d1..1689138 100644 +--- a/extensions/cpsection/network/view.py ++++ b/extensions/cpsection/network/view.py +@@ -237,6 +237,14 @@ class GConfStringSettingBox(SettingBox): + return self.string_entry.changed + + ++class GConfPasswordSettingBox(GConfStringSettingBox): ++ """A configuration line for a GConf password setting""" ++ ++ def __init__(self, name, gconf_key, size_group=None): ++ GConfStringSettingBox.__init__(self, name, gconf_key, size_group) ++ self.string_entry.set_visibility(False) ++ ++ + class GConfHostListSettingBox(GConfStringSettingBox): + """A configuration line for a host list GConf setting""" + +@@ -853,7 +861,7 @@ class Network(SectionView): + user_name_box.show() + self._undo_objects.append(user_name_box) + +- password_box = GConfStringSettingBox(_('Password:'), ++ password_box = GConfPasswordSettingBox(_('Password:'), + '/system/http_proxy/authentication_password', size_group) + password_box.show() + self._undo_objects.append(password_box) +-- +1.7.4.4 + |