summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-12-27 12:09:31 +0000
committerDaouda Lo <daouda@mandriva.com>2005-12-27 12:09:31 +0000
commit9191c9cc56d99fb6c092c3fdd5893bb707c93ce9 (patch)
treedb2584ccf147e874e43ecb5159d46cb1fc113794 /mdkapplet
parentf4ed40bbd9482199e4730cee29367525f99a29ed (diff)
downloadmgaonline-9191c9cc56d99fb6c092c3fdd5893bb707c93ce9.tar
mgaonline-9191c9cc56d99fb6c092c3fdd5893bb707c93ce9.tar.gz
mgaonline-9191c9cc56d99fb6c092c3fdd5893bb707c93ce9.tar.bz2
mgaonline-9191c9cc56d99fb6c092c3fdd5893bb707c93ce9.tar.xz
mgaonline-9191c9cc56d99fb6c092c3fdd5893bb707c93ce9.zip
- grey Main Window before calling fork/exec
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 11510d3a..6a5e207e 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -22,6 +22,7 @@
use strict;
use POSIX ":sys_wait_h";
+use Config;
use lib qw(/usr/lib/libDrakX);
use interactive;
use common;
@@ -216,6 +217,7 @@ sub showMainWindow() {
)
);
$w->show_all;
+ gtkflush()
}
sub setLabel {
my ($widget, $string) = shift;
@@ -243,11 +245,12 @@ sub refresh_contents {
];
$contents;
}
-sub configNetwork() { logIt(N("Launching drakconnect\n")); fork_exec("/usr/sbin/drakconnect") }
+sub configNetwork() { logIt(N("Launching drakconnect\n")); refresh_gui(0); fork_exec("/usr/sbin/drakconnect") }
sub installUpdates {
my $binfile = '/usr/bin/mdkapplet';
my $oldmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
logIt(N("Launching mdkupdate --applet\n"));
+ refresh_gui(0);
fork_exec("/usr/sbin/mdkupdate --applet");
my $newmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
if ($newmd5 ne $oldmd5) { logIt(N("Mandriva Online seems to be reinstalled, reloading applet ....")); exec('/usr/bin/mdkapplet') }
@@ -393,6 +396,7 @@ sub isNetwork {
$network;
}
sub configure {
+ refresh_gui(0);
fork_exec("/usr/sbin/mdkonline");
$conf_launched = 1;
}