diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-17 14:18:47 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-17 14:18:47 +0000 |
commit | 5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41 (patch) | |
tree | cee4a3b70ace77579b3f214de36c7f9de3b85d10 /mdkapplet | |
parent | 2b788ed92e5a00e48c65a458a54309f6b6d93308 (diff) | |
download | mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar.gz mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar.bz2 mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar.xz mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.zip |
- do not show plenty of windows anytime
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -104,11 +104,10 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("MdkApplet"), $eventbox->signal_connect(button_press_event => sub { if (!$raisedwindow) { if ($_[1]->button == 1) { - if (-e $conffile) { showMainWindow() } else { configure() } + if (-e $conffile) { $raisedwindow = 1; showMainWindow() } else { configure(); $raisedwindow = 0 } } - $_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time); - $raisedwindow = 1; - } + } + $_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time); }); my ($opt) = @ARGV; if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }; |