DBusMenuModel.get

Obtains a gio.DBusMenuModel for the menu model which is exported at the given bus_name and object_path.

The thread default main context is taken at the time of this call. All signals on the menu model (and any linked models) are reported with respect to this context. All calls on the returned menu model (and linked models) must also originate from this same context, with the thread default main context unchanged.

class DBusMenuModel
static
get

Parameters

connection DBusConnection
busName string

the bus name which exports the menu model or NULL if connection is not a message bus connection

objectPath string

the object path at which the menu model is exported

Return Value

a gio.DBusMenuModel object. Free with g_object_unref().

Meta

Since

2.32