diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-08-06 05:11:04 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-08-06 05:11:04 +0000 |
commit | 20b2097f0a968d26b48e12ebfaae7dc94b507575 (patch) | |
tree | 3c1cc29d4c1c34948d11cbc827cc1c37c4d1bd6e | |
parent | 336715348318acee36a8c281911d1b63b6ca597c (diff) | |
download | mgaonline-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
-rwxr-xr-x | mdkapplet | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |