Callbacks¶
  | 
|
  | 
|
  | 
Details¶
- Parameters:
 newitem (
Dbusmenu.Menuitem) – TheDbusmenu.Menuitemthat was createdparent (
Dbusmenu.Menuitem) – The parent of newitem orNoneif noneclient (
Dbusmenu.Client) – A pointer to theDbusmenu.Client
- Return type:
 
The type handler is called when a dbusmenu item is created with a matching type as setup in
Dbusmenu.Client.add_type_handlerReturn value:
Trueif the type has been handled.Falseif this function was somehow unable to handle it.
- Parameters:
 mi (
Dbusmenu.Menuitem) – Menu item that should be shownuser_data (
objectorNone) – Extra user data sent with the function
Callback prototype for a callback that is called when the menu should be shown.
- Parameters:
 mi (
Dbusmenu.Menuitem) – Menu item that should be built fromproperties (
strorNone) – A list of properties that should be the only ones in the resulting variant structure
- Returns:
 A variant representing this item and its children
- Return type:
 
This is the function that is called to represent this menu item as a variant. Should call its own children.