Class: Gio::DBusMenuModel

Inherits:
MenuModel show all
Defined in:
(unknown)

Overview

GDBusMenuModel is an implementation of [classGio.MenuModel] that can be used as a proxy for a menu model that is exported over D-Bus with [methodGio.DBusConnection.export_menu_model].

Class Method Summary collapse

Methods inherited from MenuModel

#get_item_attribute, #get_item_attribute_value, #get_item_link, #is_mutable, #items_changed, #iterate_item_attributes, #iterate_item_links, #n_items

Class Method Details

.get(connection, bus_name, object_path) ⇒ Gio::DBusMenuModel

Obtains a GDBus::MenuModel 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.

Parameters:

  • connection (Gio::DBusConnection)

    a GDBus::Connection

  • bus_name (String)

    the bus name which exports the menu model or nil if connection is not a message bus connection

  • object_path (String)

    the object path at which the menu model is exported

Returns: