Gio.DBusMenuModel

g GObject.Object GObject.Object Gio.MenuModel Gio.MenuModel GObject.Object->Gio.MenuModel Gio.DBusMenuModel Gio.DBusMenuModel Gio.MenuModel->Gio.DBusMenuModel

Subclasses:None

Methods

Inherited:Gio.MenuModel (7), GObject.Object (37)
Structs:GObject.ObjectClass (5)
class get (connection, bus_name, object_path)

Virtual Methods

Inherited:Gio.MenuModel (8), GObject.Object (7)

Properties

None

Class Details

class Gio.DBusMenuModel(**kwargs)
Bases:Gio.MenuModel
Abstract:No

Gio.DBusMenuModel is an implementation of Gio.MenuModel that can be used as a proxy for a menu model that is exported over D-Bus with Gio.DBusConnection.export_menu_model().

classmethod get(connection, bus_name, object_path)[source]
Parameters:
  • connection (Gio.DBusConnection) – a Gio.DBusConnection
  • bus_name (str or None) – the bus name which exports the menu model or None if connection is not a message bus connection
  • object_path (str) – the object path at which the menu model is exported
Returns:

a Gio.DBusMenuModel object. Free with GObject.Object.unref().

Return type:

Gio.DBusMenuModel

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.

New in version 2.32.