Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

doesmenuitemexist

Syntax

doesmenuitemexist ('<window name>', '<menu hierarchy>')

Description

checks if the specified menuitem specified in the menu hierarchy is present or not

Implementation

Return values:
1 if the menuitem is present, else 0
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/menu-item.c

Example

With respect to gedit menu structure

doesselectmenuitem ('gedit', 'mnuFile;mnuNew')

this function is required mainly to check those menuitems which will not be present always. An example of this kind of a menuitem is the close tab menu item under menu file in firefox web browser.

Author:
prem.jothimani@gmail.com

Generated by  Doxygen 1.6.0   Back to index