Author: lslezak Date: Tue Sep 11 15:43:32 2007 New Revision: 40852 URL: http://svn.opensuse.org/viewcvs/yast?rev=40852&view=rev Log: - Properly create the progress popup in ncurses so it can be closed at the end (#309376), fixed refresh in ncurses Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/modules/PackageCallbacks.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=40852&r1=40851&r2=40852&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Tue Sep 11 15:43:32 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 11 15:41:07 CEST 2007 - lslezak@suse.cz + +- Properly create the progress popup in ncurses so it can be closed + at the end (#309376), fixed refresh in ncurses + +------------------------------------------------------------------- Mon Sep 10 10:55:07 CEST 2007 - locilka@suse.cz - Fixed SlideShow initialization, using Pkg::SourceProvideDirectory Modified: trunk/packager/src/modules/PackageCallbacks.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/PackageCallbacks.ycp?rev=40852&r1=40851&r2=40852&view=diff ============================================================================== --- trunk/packager/src/modules/PackageCallbacks.ycp (original) +++ trunk/packager/src/modules/PackageCallbacks.ycp Tue Sep 11 15:43:32 2007 @@ -2097,7 +2097,7 @@ else { string label = (tick_progress) ? tick_labels[current_tick]:"/" : sformat("%1: %2", progress_task, val_raw); - progressw = `Label(label); + progressw = `ReplacePoint(`id(`rp_progress), `Label(`id(`progress_widget), label)); } UI::OpenDialog( @@ -2164,14 +2164,14 @@ else { string label = (tick_progress) ? tick_labels[current_tick]:"/" : sformat("%1: %2", progress_task, val_raw); - progressw = `Label(label); + 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) + if (tm - tick_time > 3 || !UI::GetDisplayInfo()["HasAnimationSupport"]:true) { UI::ReplaceWidget (`id(`rp_progress), progressw ); tick_time = tm; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org