Gio.DBusMenuModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.DBusMenuModel(**kwargs)¶
- Bases:
- Abstract:
No
GDBusMenuModel
is an implementation of [class`Gio`.MenuModel] that can be used as a proxy for a menu model that is exported over D-Bus with [method`Gio`.DBusConnection.export_menu_model].- classmethod get(connection, bus_name, object_path)[source]¶
- Parameters:
connection (
Gio.DBusConnection
) – aGio.DBusConnection
bus_name (
str
orNone
) – the bus name which exports the menu model orNone
if connection is not a message bus connectionobject_path (
str
) – the object path at which the menu model is exported
- Returns:
a
Gio.DBusMenuModel
object. Free withGObject.Object.unref
().- Return type:
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.