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
Signals¶
| Inherited: | Gio.MenuModel (1), GObject.Object (1) |
|---|
Fields¶
| Inherited: | Gio.MenuModel (1), GObject.Object (1) |
|---|
Class Details¶
-
class
Gio.DBusMenuModel(**kwargs)¶ Bases: Gio.MenuModelAbstract: No Gio.DBusMenuModelis an implementation ofGio.MenuModelthat can be used as a proxy for a menu model that is exported over D-Bus withGio.DBusConnection.export_menu_model().-
classmethod
get(connection, bus_name, object_path)[source]¶ Parameters: - connection (
Gio.DBusConnection) – aGio.DBusConnection - bus_name (
strorNone) – the bus name which exports the menu model orNoneif connection is not a message bus connection - object_path (
str) – the object path at which the menu model is exported
Returns: a
Gio.DBusMenuModelobject. Free withGObject.Object.unref().Return type: Obtains a
Gio.DBusMenuModelfor 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.
- connection (
-
classmethod