aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-06 07:53:06 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-06 07:53:06 +0000
commitf7bef199c39c8fbfd7063cca66bd9c7d02d45008 (patch)
tree5909aab88ee04de44e989a23dec36e359706ebb9
parent47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25 (diff)
downloadrpmdrake-f7bef199c39c8fbfd7063cca66bd9c7d02d45008.tar
rpmdrake-f7bef199c39c8fbfd7063cca66bd9c7d02d45008.tar.gz
rpmdrake-f7bef199c39c8fbfd7063cca66bd9c7d02d45008.tar.bz2
rpmdrake-f7bef199c39c8fbfd7063cca66bd9c7d02d45008.tar.xz
rpmdrake-f7bef199c39c8fbfd7063cca66bd9c7d02d45008.zip
don't display passwords in clear text
-rwxr-xr-xedit-urpm-sources.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 85bb8e0f..4e42b1b9 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -87,8 +87,8 @@ sub add_callback {
$info->{login_check}->set_active($_[0]->get_active);
}),
1, new Gtk::Label),
- gtkset_sensitive($info->{$_->[0].'_entry'} = gtkentry, 0) ] }
- ([ 'login', _("Login:") ], [ 'pass', _("Password:") ])
+ gtkset_visibility(gtkset_sensitive($info->{$_->[0].'_entry'} = gtkentry, 0), $_->[2]) ] }
+ ([ 'login', _("Login:"), 1 ], [ 'pass', _("Password:"), 0 ])
};
my $nb = $count_nbs++;
gtksignal_connect($_[1], 'clicked' => sub { $_[0]->get_active and $notebook->set_page($nb) });
@@ -208,7 +208,7 @@ sub proxy_callback {
0, gtkset_active(my $proxyuserbutton = new Gtk::CheckButton(_("User:")), to_bool($proxy_user)),
1, gtkset_sensitive(my $proxyuserentry = gtkentry($user), to_bool($proxy_user)),
0, new Gtk::Label(_("Password:")),
- 1, gtkset_sensitive(my $proxypasswordentry = gtkentry($pass), to_bool($proxy_user))),
+ 1, gtkset_visibility(gtkset_sensitive(my $proxypasswordentry = gtkentry($pass), to_bool($proxy_user)), 0)),
new Gtk::HSeparator,
gtkpack(create_hbox(),
gtksignal_connect(new Gtk::Button(_("Ok")), clicked => sub { $w->{retval} = 1; Gtk->main_quit }),