handle_event


Description:

public virtual void handle_event (string name, Variant variant, uint timestamp)

This function is called to create an event.

It is likely to be overrided by subclasses. The default menu item will respond to the activate signal and do:

Emits the DbusmenuMenuitem::item-activate signal on this menu item. Called by server objects when they get the appropriate DBus signals from the client.

If you subclass this function you should really think about calling the parent function unless you have a good reason not to.

Parameters:

this

The Menuitem to send the signal on.

name

The name of the signal

variant

A value that could be set for the event

timestamp

The timestamp of when the event happened