Class DBusMenuModel

All Implemented Interfaces:
PointerInterface

public class DBusMenuModel extends MenuModel
#GDBusMenuModel is an implementation of #GMenuModel that can be used
as a proxy for a menu model that is exported over D-Bus with
g_dbus_connection_export_menu_model().

https://docs.gtk.org/gio/class.DBusMenuModel.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • get

      public static DBusMenuModel get(@Nonnull DBusConnection connection, @Nullable Str bus_name, @Nonnull Str object_path)
      Obtains a #GDBusMenuModel 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 - a #GDBusConnection
      bus_name - the bus name which exports the menu model or %NULL if @connection is not a message bus connection
      object_path - the object path at which the menu model is exported
      Returns:
      a #GDBusMenuModel object. Free with g_object_unref().
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()