summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-03 14:55:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-03 14:55:06 +0000
commit98307f8175e921be2467ea691620660bfa9e1fbc (patch)
treeb34e2cd2c0f4820bafdd3248b5008e35455bf749 /mdkapplet
parent9e9db899368826f8bedf7247b6d3549d7e0874fb (diff)
downloadmgaonline-98307f8175e921be2467ea691620660bfa9e1fbc.tar
mgaonline-98307f8175e921be2467ea691620660bfa9e1fbc.tar.gz
mgaonline-98307f8175e921be2467ea691620660bfa9e1fbc.tar.bz2
mgaonline-98307f8175e921be2467ea691620660bfa9e1fbc.tar.xz
mgaonline-98307f8175e921be2467ea691620660bfa9e1fbc.zip
(go2State) factorize calling gtkflush() after calling go2state() into
go2state() itself (which is redundant with setState() one...)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 2 insertions, 3 deletions
diff --git a/mdkapplet b/mdkapplet
index 04d00cdb..71385359 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -237,7 +237,6 @@ my $product_id = common::parse_LDAP_namespace_structure(cat_("$root/etc/product.
shouldStart() or die "$localfile should be set to TRUE: please use --force or -f option to launch applet\n";
go2State('delayed');
-gtkflush();
Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub {
# schedule future checks:
@@ -430,7 +429,6 @@ sub silentCheck() {
$check_time = $new_time;
if (is_there_a_new_distributions()) {
go2State('new_distribution');
- gtkflush();
return;
}
}
@@ -440,7 +438,7 @@ sub silentCheck() {
logIt("Connecting to ...\n"); # i18n bug to fix in cooker
my $w = $::main_window ? $::main_window->window : undef;
gtkset_mousecursor_wait($w);
- gtkflush(); go2State('busy'); gtkflush();
+ go2State('busy');
gtkset_mousecursor_normal($w);
# are there any updates ?
@@ -564,6 +562,7 @@ sub go2State {
$menu->destroy if $menu;
$menu = setState($state);
$state_global = $state;
+ gtkflush();
}
sub shouldStart() {