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.MenuModel- Abstract: - No - Gio.DBusMenuModelis an implementation of- Gio.MenuModelthat 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) – 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 with- GObject.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