summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-21 18:25:56 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-21 18:25:56 +0000
commit9a0c9cbabdeb298e1de379b43f51ebd28be01d1f (patch)
treef20ace892103bc7d3ad7f95d22d72af973b3ba13
parent21168f64e5e1706c75b1ccdc57920694fc50aa2a (diff)
downloadmgaonline-9a0c9cbabdeb298e1de379b43f51ebd28be01d1f.tar
mgaonline-9a0c9cbabdeb298e1de379b43f51ebd28be01d1f.tar.gz
mgaonline-9a0c9cbabdeb298e1de379b43f51ebd28be01d1f.tar.bz2
mgaonline-9a0c9cbabdeb298e1de379b43f51ebd28be01d1f.tar.xz
mgaonline-9a0c9cbabdeb298e1de379b43f51ebd28be01d1f.zip
(refresh_gui) kill dead code (dead since r56623 on 2007-03-13: "on
left click on applet, run MandrivaUpdate if there're updates") after switching to local updates computing
-rwxr-xr-xmdkapplet13
1 files changed, 1 insertions, 12 deletions
diff --git a/mdkapplet b/mdkapplet
index f3043919..c8b2d23e 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -261,7 +261,6 @@ sub harvester {
}
}
push @pids, $childpid;
- WIFEXITED($?) and refresh_gui(1);
} while $childpid > 0;
Glib::Timeout->add(200, sub { silentCheck(); 0 }) if $mdvupdate_returned;
return @pids;
@@ -269,20 +268,11 @@ sub harvester {
sub fork_exec {
my $pid = run_program::raw({ detach => 1 }, @_);
- refresh_gui(1);
return $pid;
}
-sub refresh_gui {
- my ($sens) = @_;
- #!$conf_launched and silentCheck(); $conf_launched = 0;
- my $w = $::main_window ? $::main_window->window : undef;
- $insensitive_while_running_a_child = !$sens;
- $sens ? gtkset_mousecursor_normal($w) : gtkset_mousecursor_wait($w);
- gtkflush();
-}
-sub configNetwork() { logIt(N_("Launching drakconnect\n")); refresh_gui(0); fork_exec("/usr/sbin/drakconnect") }
+sub configNetwork() { logIt(N_("Launching drakconnect\n")); fork_exec("/usr/sbin/drakconnect") }
sub restart_applet() {
logIt(N_("Mandriva Online seems to be reinstalled, reloading applet ...."));
@@ -294,7 +284,6 @@ sub installUpdates() {
return if $mdv_update_pid;
my $oldmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
logIt(N_("Launching MandrivaUpdate\n"));
- refresh_gui(0);
$mdv_update_pid = fork_exec('MandrivaUpdate', '--no-media-update', '--no-confirmation');
my $newmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
restart_applet() if $newmd5 ne $oldmd5;