Author: lslezak Date: Mon Sep 3 16:40:27 2007 New Revision: 40722 URL: http://svn.opensuse.org/viewcvs/yast?rev=40722&view=rev Log: - use gif animation for the busy indicator (works also in Gtk UI) (#296945), do not restart the animation too often (wait at least 3 seconds) - 2.15.74 Modified: trunk/packager/VERSION trunk/packager/package/yast2-packager.changes trunk/packager/src/modules/PackageCallbacks.ycp Modified: trunk/packager/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/VERSION?rev=40722&r1=40721&r2=40722&view=diff ============================================================================== --- trunk/packager/VERSION (original) +++ trunk/packager/VERSION Mon Sep 3 16:40:27 2007 @@ -1 +1 @@ -2.15.73 +2.15.74 Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=40722&r1=40721&r2=40722&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Mon Sep 3 16:40:27 2007 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Sep 3 16:36:13 CEST 2007 - lslezak@suse.cz + +- use gif animation for the busy indicator (works also in Gtk UI) + (#296945), do not restart the animation too often (wait at least + 3 seconds) +- 2.15.74 + +------------------------------------------------------------------- Mon Sep 3 14:07:53 CEST 2007 - lslezak@suse.cz - better busy indicator for tick callback (#296945) Modified: trunk/packager/src/modules/PackageCallbacks.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/PackageCallbacks.ycp?rev=40722&r1=40721&r2=40722&view=diff ============================================================================== --- trunk/packager/src/modules/PackageCallbacks.ycp (original) +++ trunk/packager/src/modules/PackageCallbacks.ycp Mon Sep 3 16:40:27 2007 @@ -32,7 +32,7 @@ global boolean _package_popup = false; global boolean _script_popup = false; global boolean _scan_popup = false; - global string _tick_movie = "/usr/share/YaST2/theme/current/animations/ticks-loop3.mng"; + global string _tick_movie = "/usr/share/YaST2/theme/current/animations/ticks-loop3.gif"; global integer _tick_movie_x = 7; global integer _tick_movie_y = 1; global string _package_name = ""; @@ -57,6 +57,8 @@ // max. length of the text in the repository popup window integer max_size = 60; + integer tick_time = 0; + //-------------------------------------------------------------------------- // defaults @@ -2117,6 +2119,7 @@ ) ); + tick_time = 0; } } @@ -2164,7 +2167,20 @@ progressw = `Label(label); } - UI::ReplaceWidget (`id(`rp_progress), progressw ); + // restart the animation only when at least 3 seconds elapsed, + // don't restart it too often + integer tm = time(); + y2debug("Time elapsed since the last tick callback: %1", tm - tick_time); + if (tm - tick_time > 3) + { + UI::ReplaceWidget (`id(`rp_progress), progressw ); + tick_time = tm; + } + else + { + y2debug("Ignoring the tick callback"); + } + if (tick_progress) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org