DbusmenuGtk3.Client¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class DbusmenuGtk3.Client(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
dbus_name (
str
) – Name of theDbusmenu.Server
on DBusdbus_object (
str
) – Name of the object on theDbusmenu.Server
- Returns:
A new
DbusmenuGtk3.Client
sync’d with a server- Return type:
Creates a new
DbusmenuGtk3.Client
object and creates aDbusmenu.Client
that connects across DBus to aDbusmenu.Server
.
- get_accel_group()¶
- Returns:
Either a valid group or
None
on error or none set.- Return type:
Gets the accel group for this client.
- menuitem_get(item)¶
- Parameters:
item (
Dbusmenu.Menuitem
) –Dbusmenu.Menuitem
to get associatedGtk.MenuItem
on.- Returns:
The
Gtk.MenuItem
that can be played with.- Return type:
This grabs the
Gtk.MenuItem
that is associated with theDbusmenu.Menuitem
.
- menuitem_get_submenu(item)¶
- Parameters:
item (
Dbusmenu.Menuitem
) –Dbusmenu.Menuitem
to get associatedGtk.Menu
on.- Returns:
The
Gtk.Menu
if there is one.- Return type:
This grabs the submenu associated with the menuitem.
- newitem_base(item, gmi, parent)¶
- Parameters:
item (
Dbusmenu.Menuitem
) – TheDbusmenu.Menuitem
to attach the GTK-isms togmi (
Gtk.MenuItem
) – AGtk.MenuItem
representing the GTK world’s view of this menuitemparent (
Dbusmenu.Menuitem
) – The parentDbusmenu.Menuitem
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.