Author: aschnell Date: Fri Mar 6 14:50:22 2009 New Revision: 55973 URL: http://svn.opensuse.org/viewcvs/yast?rev=55973&view=rev Log: - added new contextmenu event 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=55973&r1=55972&r2=55973&view=diff ============================================================================== --- trunk/yast2/library/modules/Event.ycp (original) +++ trunk/yast2/library/modules/Event.ycp Fri Mar 6 14:50:22 2009 @@ -45,6 +45,24 @@ /** + * Checks that the EventType is WidgetEvent and the EventReason is + * ContextMenuActivated. + * + * Returns id or nil. + */ + global symbol IsWidgetContextMenuActivated(map event) + { + if (event["EventType"]:"Unknown" != "WidgetEvent") + return nil; + + if (event["EventReason"]:"Unknown" != "ContextMenuActivated") + return nil; + + return event["ID"]:(symbol)(nil); + } + + + /** * Checks that the EventType is MenuEvent. * * return id or nil. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org