DbusmenuGtk3.Client

g Dbusmenu.Client Dbusmenu.Client DbusmenuGtk3.Client DbusmenuGtk3.Client Dbusmenu.Client->DbusmenuGtk3.Client GObject.Object GObject.Object GObject.Object->Dbusmenu.Client

Subclasses:

None

Methods

Inherited:

Dbusmenu.Client (7), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (dbus_name, dbus_object)

get_accel_group ()

menuitem_get (item)

menuitem_get_submenu (item)

newitem_base (item, gmi, parent)

set_accel_group (agroup)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Dbusmenu.Client (3)

Signals

Inherited:

Dbusmenu.Client (6), GObject.Object (1)

Fields

Inherited:

Dbusmenu.Client (6), GObject.Object (1)

Name

Type

Access

Description

parent

Dbusmenu.Client

r

Class Details

class DbusmenuGtk3.Client(**kwargs)
Bases:

Dbusmenu.Client

Abstract:

No

Structure:

DbusmenuGtk3.ClientClass

A subclass of Dbusmenu.Client to add functionality with regarding building GTK items out of the abstract tree.

classmethod new(dbus_name, dbus_object)
Parameters:
Returns:

A new DbusmenuGtk3.Client sync’d with a server

Return type:

DbusmenuGtk3.Client

Creates a new DbusmenuGtk3.Client object and creates a Dbusmenu.Client that connects across DBus to a Dbusmenu.Server.

get_accel_group()
Returns:

Either a valid group or None on error or none set.

Return type:

Gtk.AccelGroup

Gets the accel group for this client.

menuitem_get(item)
Parameters:

item (Dbusmenu.Menuitem) – Dbusmenu.Menuitem to get associated Gtk.MenuItem on.

Returns:

The Gtk.MenuItem that can be played with.

Return type:

Gtk.MenuItem

This grabs the Gtk.MenuItem that is associated with the Dbusmenu.Menuitem.

menuitem_get_submenu(item)
Parameters:

item (Dbusmenu.Menuitem) – Dbusmenu.Menuitem to get associated Gtk.Menu on.

Returns:

The Gtk.Menu if there is one.

Return type:

Gtk.Menu

This grabs the submenu associated with the menuitem.

newitem_base(item, gmi, parent)
Parameters:

This function provides some of the basic connectivity for being in the GTK world. Things like visibility and sensitivity of the item are handled here so that the subclasses don’t have to. If you’re building your on GTK menu item you can use this function to apply those basic attributes so that you don’t have to deal with them either.

This also handles passing the “activate” signal back to the Dbusmenu.Menuitem side of thing.

set_accel_group(agroup)
Parameters:

agroup (Gtk.AccelGroup) – The new acceleration group

Sets the acceleration group for the menu items with accelerators on this client.