Author: aschnell Date: Wed Apr 14 17:07:54 2010 New Revision: 61707 URL: http://svn.opensuse.org/viewcvs/yast?rev=61707&view=rev Log: - added Event::GetWidgetId function 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=61707&r1=61706&r2=61707&view=diff ============================================================================== --- trunk/yast2/library/modules/Event.ycp (original) +++ trunk/yast2/library/modules/Event.ycp Wed Apr 14 17:07:54 2010 @@ -9,6 +9,15 @@ /** + * Returns id of widget causing the event. + */ + global symbol GetWidgetId(map event) + { + return event["ID"]:(symbol)(nil); + } + + + /** * Checks that the EventType is WidgetEvent and the EventReason is * Activated. * -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org