Author: aschnell Date: Thu Mar 5 17:30:39 2009 New Revision: 55948 URL: http://svn.opensuse.org/viewcvs/yast?rev=55948&view=rev Log: - added TimeoutWaitForEvent and make WaitForEvent not take a timeout Modified: trunk/yast2/library/wizard/src/Wizard.ycp Modified: trunk/yast2/library/wizard/src/Wizard.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/wizard/src/Wizard.ycp?rev=55948&r1=55947&r2=55948&view=diff ============================================================================== --- trunk/yast2/library/wizard/src/Wizard.ycp (original) +++ trunk/yast2/library/wizard/src/Wizard.ycp Thu Mar 5 17:30:39 2009 @@ -622,7 +622,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