summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-26 16:49:15 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-26 16:49:15 +0000
commit82f8570add9a50605f39bf7fade56df47ad4d83d (patch)
treedbcdb184dcb2478f9e49f909f805dace05c69aae /bin
parentcf01bc2789d0e8b25d7bf4747be52540a5433a76 (diff)
downloaddrakguard-82f8570add9a50605f39bf7fade56df47ad4d83d.tar
drakguard-82f8570add9a50605f39bf7fade56df47ad4d83d.tar.gz
drakguard-82f8570add9a50605f39bf7fade56df47ad4d83d.tar.bz2
drakguard-82f8570add9a50605f39bf7fade56df47ad4d83d.tar.xz
drakguard-82f8570add9a50605f39bf7fade56df47ad4d83d.zip
add a load function
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/drakguard b/bin/drakguard
index ffc4066..e7aae28 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -40,8 +40,7 @@ my $blacklist = Gtk2::SimpleList->new(N("Forbidden addresses") => 'text');
$blacklist->get_selection->set_mode('multiple');
my ($enable, $level, $time_control, $allow_time_change);
-$level ||= "Normal";
-
+load();
sub update_time_change() {
gtkval_modify(\$allow_time_change, $enable && $time_control);
@@ -165,6 +164,10 @@ sub unwhitelist {
sub quit_gui() { Gtk2->main_quit }
+sub load() {
+ $level ||= "Normal";
+}
+
sub save() {
my $proxy_port = 3128;
my $proxy_user = 'squid';