![](https://seccdn.libravatar.org/avatar/c3c40c0a8c67869856fd7e06cbcb4099.jpg?s=120&d=mm&r=g)
Author: lslezak Date: Thu Jan 17 13:48:02 2008 New Revision: 43713 URL: http://svn.opensuse.org/viewcvs/yast?rev=43713&view=rev Log: - use a `BusyIndicator widget instead of the animated icon - 2.16.15 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=43713&r1=43712&r2=43713&view=diff ============================================================================== --- trunk/packager/VERSION (original) +++ trunk/packager/VERSION Thu Jan 17 13:48:02 2008 @@ -1 +1 @@ -2.16.14 +2.16.15 Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=43713&r1=43712&r2=43713&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Thu Jan 17 13:48:02 2008 @@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Thu Jan 17 13:43:42 CET 2008 - lslezak@suse.cz + +- use a `BusyIndicator widget instead of the animated icon +- use a map parameter in the GPG key related callbacks, + display created and expiration dates in the popups, + display a warning if the key is expired +- implemented AcceptWrongDigest and AcceptUnknownDigest callbacks +- 2.16.15 + +------------------------------------------------------------------- Wed Jan 16 15:21:17 CET 2008 - locilka@suse.cz - Always use ProvideOptionalFile for downloading the Release Notes Modified: trunk/packager/src/modules/PackageCallbacks.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/PackageCallbacks.ycp?rev=43713&r1=43712&r2=43713&view=diff ============================================================================== --- trunk/packager/src/modules/PackageCallbacks.ycp (original) +++ trunk/packager/src/modules/PackageCallbacks.ycp Thu Jan 17 13:48:02 2008 @@ -35,9 +35,6 @@ 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.gif"; - global integer _tick_movie_x = 7; - global integer _tick_movie_y = 1; global string _package_name = ""; global integer _package_size = 0; global boolean _deleting_package = false; @@ -60,8 +57,6 @@ // max. length of the text in the repository popup window integer max_size = 60; - integer tick_time = 0; - //-------------------------------------------------------------------------- // defaults @@ -2148,17 +2143,6 @@ } else { - term progressw = `Empty(); - if ( UI::GetDisplayInfo()["HasAnimationSupport"]:false ) - { - progressw = `HVCenter(`MinSize( _tick_movie_x, _tick_movie_y, `ReplacePoint(`id(`rp_progress), `Image(`id (`progress_widget), `opt(`animated), _tick_movie, "progress_widget" )))); - } - else - { - string label = (tick_progress) ? tick_labels[current_tick]:"/" : sformat("%1: %2", progress_task, val_raw); - progressw = `ReplacePoint(`id(`rp_progress), `Label(`id(`progress_widget), label)); - } - UI::OpenDialog( `HBox( `HSpacing(1), @@ -2166,10 +2150,7 @@ `VSpacing(0.5), `HSpacing(`id(`callback_progress_popup), max_size), (in_percent) ? `ProgressBar (`id (`progress_widget), task, 100, val_percent) - : `VBox( - `Label(task), - progressw - ), + : `BusyIndicator(`id(`progress_widget), task, 3000), `VSpacing(0.2), `PushButton (`id (`abort), Label::AbortButton ()), `VSpacing(0.5) @@ -2178,8 +2159,6 @@ ) ); } - - tick_time = 0; } } @@ -2233,36 +2212,7 @@ { if (tick_progress || val_progress) { - term progressw = `Empty(); - if ( UI::GetDisplayInfo()["HasAnimationSupport"]:false ) - { - progressw = `HVCenter(`MinSize( _tick_movie_x, _tick_movie_y, `Image(`id (`progress_widget), `opt(`animated), _tick_movie, "progress_widget" ))); - } - else - { - string label = (tick_progress) ? tick_labels[current_tick]:"/" : sformat("%1: %2", progress_task, val_raw); - progressw = `Label(`id(`progress_widget), label); - } - - // 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::GetDisplayInfo()["HasAnimationSupport"]:true) - { - UI::ReplaceWidget (`id(`rp_progress), progressw ); - tick_time = tm; - } - else - { - y2debug("Ignoring the tick callback"); - } - - - if (tick_progress) - { - NextTick(); - } + UI::ChangeWidget(`id(`progress_widget), `Alive, true); } else { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org