Gio.DBusMenuModel.get
function get(connection: Gio.DBusConnection, bus_name: String, object_path: String): Gio.DBusMenuModel { // Gjs wrapper for g_dbus_menu_model_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.
Since 2.32
- connection
- bus_name
the bus name which exports the menu model
- object_path
the object path at which the menu model is exported
- Returns
a Gio.DBusMenuModel object. Free with GObject.Object.prototype.unref.