diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 14:55:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 14:55:06 +0000 |
commit | 98307f8175e921be2467ea691620660bfa9e1fbc (patch) | |
tree | b34e2cd2c0f4820bafdd3248b5008e35455bf749 /mdkapplet | |
parent | 9e9db899368826f8bedf7247b6d3549d7e0874fb (diff) | |
download | mgaonline-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-x | mdkapplet | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() { |