![]() |
![]() |
![]() |
libdbusmenu-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define DBUSMENU_SERVER_SIGNAL_ID_PROP_UPDATE #define DBUSMENU_SERVER_SIGNAL_ID_UPDATE #define DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATED #define DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATE #define DBUSMENU_SERVER_PROP_DBUS_OBJECT #define DBUSMENU_SERVER_PROP_ROOT_NODE #define DBUSMENU_SERVER_PROP_VERSION DbusmenuServer; DbusmenuServerClass; DbusmenuServer * dbusmenu_server_new (const gchar *object
); void dbusmenu_server_set_root (DbusmenuServer *server
,DbusmenuMenuitem *root
);
#define DBUSMENU_SERVER_SIGNAL_ID_PROP_UPDATE "item-property-updated"
#define DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATED "layout-updated"
#define DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATE DBUSMENU_SERVER_SIGNAL_LAYOUT_UPDATED
typedef struct { GObject parent; /*< Private >*/ DbusmenuServerPrivate * priv; } DbusmenuServer;
A server which represents a sharing of a set of DbusmenuMenuitems across DBus to a DbusmenuClient.
typedef struct { GObjectClass parent_class; /* Signals */ void (*id_prop_update)(gint id, gchar * property, gchar * value); void (*id_update)(gint id); void (*layout_updated)(gint revision); void (*item_activation)(gint id, guint timestamp); /*< Private >*/ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); } DbusmenuServerClass;
reserved1
: Reserved for future use.
reserved2
: Reserved for future use.
reserved3
: Reserved for future use.
reserved4
: Reserved for future use.
reserved5
: Reserved for future use.
reserved6
: Reserved for future use.
The class implementing the virtual functions for DbusmenuServer.
GObjectClass |
GObjectClass |
Slot for "id-prop-update". | |
Slot for "id-update". | |
Slot for "layout-update". | |
DbusmenuServer * dbusmenu_server_new (const gchar *object
);
Creates a new DbusmenuServer object with a specific object
path on DBus. If object
is set to NULL the default object
name of "/com/canonical/dbusmenu" will be used.
|
The object name to show for this menu structure on DBus. May be NULL. |
Returns : |
A brand new DbusmenuServer |
void dbusmenu_server_set_root (DbusmenuServer *server
,DbusmenuMenuitem *root
);
This function contains all of the GValue wrapping
required to set the property "root-node"
on the server self
.
|
|
|
The new root DbusmenuMenuitem tree |