Name Type Description Default Value type String Can be one of: - "standard": an item which can be clicked to trigger an action or show another menu - "separator": a separator Vendor specific types can be added by prefixing them with "x--". "standard" label string Text of the item, except that: -# two consecutive underscore characters "__" are displayed as a single underscore, -# any remaining underscore characters are not displayed at all, -# the first of those remaining underscore characters (unless it is the last character in the string) indicates that the following character is the access key. "" enabled boolean Whether the item can be activated or not. true visible boolean True if the item is visible in the menu. true icon-name string Icon name of the item, following the freedesktop.org icon spec. "" icon-data binary PNG data of the icon. Empty shortcut array of arrays of strings The shortcut of the item. Each array represents the key press in the list of keypresses. Each list of strings contains a list of modifiers and then the key that is used. The modifier strings allowed are: "Control", "Alt", "Shift" and "Super". - A simple shortcut like Ctrl+S is represented as: [["Control", "S"]] - A complex shortcut like Ctrl+Q, Alt+X is represented as: [["Control", "Q"], ["Alt", "X"]] Empty toggle-type string If the item can be toggled, this property should be set to: - "checkmark": Item is an independent togglable item - "radio": Item is part of a group where only one item can be toggled at a time - "": Item cannot be toggled "" toggle-state int Describe the current state of a "togglable" item. Can be one of: - 0 = off - 1 = on - anything else = indeterminate Note: The implementation does not itself handle ensuring that only one item in a radio group is set to "on", or that a group does not have "on" and "indeterminate" items simultaneously; maintaining this policy is up to the toolkit wrappers. -1 children-display string If the menu item has children this property should be set to "submenu". "" Vendor specific properties can be added by prefixing them with "x--". ]]> Provides the version of the DBusmenu API that this API is implementing. Represents the way the text direction of the application. This allows the server to handle mismatches intelligently. For left- to-right the string is "ltr" for right-to-left it is "rtl". Provides the layout and propertiers that are attached to the entries that are in the layout. It only gives the items that are children of the item that is specified in @parentId. It will return all of the properties or specific ones depending of the value in @propertyNames. The format is recursive, where the second 'v' is in the same format as the original 'a(ia(sv)a(v))'. If the @recursive flag is set to less than one then the second array will have zero entries. The ID of the parent node for the layout. For grabbing the layout from the root node use zero. The amount of levels of recursion to use. -1, as value would deliver all the items under the @parentId. The list of item properties we are interested in. If there are no entries in the list all of the properties will be sent. The revision number of the layout. For matching with layoutUpdated signals. The layout as an XML string of IDs. Returns the list of items which are children of @a parentId. A list of ids that we should be finding the properties on. If the list is empty, all menu items should be sent. The list of item properties we are interested in. If there are no entries in the list all of the properties will be sent. An array of property values. An item in this area is represented as a struct following this format: @li id unsigned the item id @li properties map(string => variant) the requested item properties Get a signal property on a single item. This is not useful if you're going to implement this interface, it should only be used if you're debugging via a commandline tool. the id of the item which received the event the name of the property to get the value of the property -" ]]> the id of the item which received the event the type of event event-specific data The time that the event occured if available or the time the message was sent if not This is called by the applet to notify the application that it is about to show the menu under the specified item. Which menu item represents the parent of the item about to be shown. Whether this AboutToShow event should result in the menu being updated. Triggered when there are lots of property updates across many items so they all get grouped into a single dbus message. The format is the ID of the item with a hashtable of names and values for those properties. Triggered by the application to notify display of a layout update, up to revision The revision of the layout that we're currently on If the layout update is only of a subtree, this is the parent item for the entries that have changed. It is zero if the whole layout should be considered invalid. The server is requesting that all clients displaying this menu open it to the user. This would be for things like hotkeys that when the user presses them the menu should open and display itself to the user. ID of the menu that should be activated The time that the event occured