summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-08-06 05:11:04 +0000
committerDaouda Lo <daouda@mandriva.com>2004-08-06 05:11:04 +0000
commit20b2097f0a968d26b48e12ebfaae7dc94b507575 (patch)
tree3c1cc29d4c1c34948d11cbc827cc1c37c4d1bd6e /mdkapplet
parent336715348318acee36a8c281911d1b63b6ca597c (diff)
downloadmgaonline-20b2097f0a968d26b48e12ebfaae7dc94b507575.tar
mgaonline-20b2097f0a968d26b48e12ebfaae7dc94b507575.tar.gz
mgaonline-20b2097f0a968d26b48e12ebfaae7dc94b507575.tar.bz2
mgaonline-20b2097f0a968d26b48e12ebfaae7dc94b507575.tar.xz
mgaonline-20b2097f0a968d26b48e12ebfaae7dc94b507575.zip
- added check button to quit taskbar forever, change behaviour of quit
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index ebf9e8bf..fe5d7fc3 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -430,6 +430,7 @@ sub shouldStart() {
}
sub setState {
my $state_type = shift;
+ my $checkme;
my $arr = $state{$state_type}{menu};
my $tmp = gtkcreate_pixbuf($state{$state_type}{colour}->[0]);
$img->set_from_pixbuf($tmp);
@@ -442,6 +443,8 @@ sub setState {
}
$menu->append(gtkshow(Gtk2::SeparatorMenuItem->new));
$menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label(N("About.."))), activate => sub { getSite($online_site) }));
+ $menu->append(gtksignal_connect(gtkset_active($checkme = Gtk2::CheckMenuItem->new_with_label(N("Always launch on startup")), shouldStart()), toggled => sub { setAutoStart(uc(bool2text($checkme->get_active))) }));
+ $checkme->show;
$menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label(N("Quit"))), activate => sub { mainQuit() }));
$menu
}
@@ -470,6 +473,6 @@ LASTCHECK=$date
}
}
sub mainQuit() {
- setAutoStart('FALSE');
+# setAutoStart('FALSE');
Gtk2->main_quit
}