Author: aschnell Date: Fri May 6 12:19:41 2011 New Revision: 63921 URL: http://svn.opensuse.org/viewcvs/yast?rev=63921&view=rev Log: - backported some functions need by storage Modified: branches/SuSE-Code-11-SP2-Branch/yast2/library/wizard/src/Wizard.ycp Modified: branches/SuSE-Code-11-SP2-Branch/yast2/library/wizard/src/Wizard.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/yast2/library/wizard/src/Wizard.ycp?rev=63921&r1=63920&r2=63921&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/yast2/library/wizard/src/Wizard.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/yast2/library/wizard/src/Wizard.ycp Fri May 6 12:19:41 2011 @@ -624,7 +624,23 @@ * * Analog to Wizard::UserInput. **/ - global map WaitForEvent( integer timeout_millisec ) + global map WaitForEvent() + { + map input = UI::WaitForEvent(); + + if (input["ID"]:nil == `accept) input["ID"] = `next; + if (input["ID"]:nil == `cancel) input["ID"] = `back; + + return input; + } + + + /** + * Substitute for UI::WaitForEvent with timeout + * + * Analog to Wizard::UserInput. + **/ + global map TimeoutWaitForEvent( integer timeout_millisec ) { map input = UI::WaitForEvent( timeout_millisec ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org