1.17 <GDBusMenuModel>

Class: <GDBusMenuModel>

It derives from <GMenuModel>.

<GDBusMenuModel> is an implementation of <GMenuModel> that can be used as a proxy for a menu model that is exported over D-Bus with dbus-connection:export-menu-model.

Procedures

Procedure: dbus-menu-model:get connection bus-name object-path ⇒ %return

Obtains a <GDBusMenuModel> 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.

connection

Passed: a <GDBusConnection>.

a <GDBusConnection>

bus-name

Passed: a string, or #f.

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

object-path

Passed: a string.

the object path at which the menu model is exported

%return

Returned: a <GDBusMenuModel>.

a <GDBusMenuModel> object. Free with object:unref.