Author: aschnell Date: Wed Mar 18 18:00:22 2009 New Revision: 56224 URL: http://svn.opensuse.org/viewcvs/yast?rev=56224&view=rev Log: - added Event::IsWidgetValueChanged Modified: trunk/yast2/library/modules/Event.ycp Modified: trunk/yast2/library/modules/Event.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/modules/Event.ycp?rev=56224&r1=56223&r2=56224&view=diff ============================================================================== --- trunk/yast2/library/modules/Event.ycp (original) +++ trunk/yast2/library/modules/Event.ycp Wed Mar 18 18:00:22 2009 @@ -46,6 +46,24 @@ /** * Checks that the EventType is WidgetEvent and the EventReason is + * ValueChanged. + * + * Returns id or nil. + */ + global symbol IsWidgetValueChanged(map event) + { + if (event["EventType"]:"Unknown" != "WidgetEvent") + return nil; + + if (event["EventReason"]:"Unknown" != "ValueChanged") + return nil; + + return event["ID"]:(symbol)(nil); + } + + + /** + * Checks that the EventType is WidgetEvent and the EventReason is * Activated or SelectionChanged. * * Returns id or nil. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org