From 98307f8175e921be2467ea691620660bfa9e1fbc Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 3 Oct 2008 14:55:06 +0000 Subject: (go2State) factorize calling gtkflush() after calling go2state() into go2state() itself (which is redundant with setState() one...) --- mdkapplet | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mdkapplet') 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() { -- cgit v1.2.1