https://bugzilla.novell.com/show_bug.cgi?id=309376#c6
Martin Vidner changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kmachalkova@novell.com, mvidner@novell.com,
| |gs@novell.com
AssignedTo|locilka@novell.com |lslezak@novell.com
--- Comment #6 from Martin Vidner 2007-09-11 05:54:00 MST ---
I think I got it... thanks to Stano for the hint.
See below how the progress popup is closed only if it contains
`progress_widget, but the widget is only present if the UI supports animation.
Lada, please fix the callbacks.
PackageCallbacks.ycp:
global void ProgressEnd(integer id)
{
y2milestone("ProgressFinish: %1", id);
if (!Mode::commandline() && IsProgressPopup())
{
UI::CloseDialog();
}
}
boolean IsProgressPopup()
{
return UI::WidgetExists(`id(`progress_widget)) &&
UI::WidgetExists(`id(`callback_progress_popup));
}
ProgressStart:
..
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_wi
}
else
{
string label = (tick_progress) ? tick_labels[current_tick]:"/" :
sformat("%1: %2", progress_task, val_raw);
progressw = `Label(label);
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.