summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-17 17:41:19 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-17 17:41:19 +0000
commit30a395e9d16238652d45eb8c3b4d81a1853f4265 (patch)
treef29033d40b6e4a8d9a1f1197d9a0e8e59baf949a /bin
parente7f4474180e757e2c6894998ab1cc0ae73de4f13 (diff)
downloaddrakguard-30a395e9d16238652d45eb8c3b4d81a1853f4265.tar
drakguard-30a395e9d16238652d45eb8c3b4d81a1853f4265.tar.gz
drakguard-30a395e9d16238652d45eb8c3b4d81a1853f4265.tar.bz2
drakguard-30a395e9d16238652d45eb8c3b4d81a1853f4265.tar.xz
drakguard-30a395e9d16238652d45eb8c3b4d81a1853f4265.zip
connect ok/cancel buttons
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/drakguard b/bin/drakguard
index b42931a..05078a3 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -44,6 +44,9 @@ sub update_time_change {
gtkval_modify(\$allow_time_change, $enable && $time_control);
}
+$w->{ok_clicked} = \&save;
+$w->{cancel_clicked} = \&quit_gui;
+
gtkadd($w->{window},
gtknew('VBox', spacing => 5, children => [
$::isEmbedded ? () : (0, Gtk2::Banner->new($icon, $title)),
@@ -158,3 +161,9 @@ sub unwhitelist {
my @addr = @_;
list_remove_addr($whitelist->{data}, @addr);
}
+
+sub quit_gui() { Gtk2->main_quit }
+
+sub save {
+
+}