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.Clientto 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.Serveron DBusdbus_object (
str) – Name of the object on theDbusmenu.Server
- Returns:
 A new
DbusmenuGtk3.Clientsync’d with a server- Return type:
 
Creates a new
DbusmenuGtk3.Clientobject and creates aDbusmenu.Clientthat connects across DBus to aDbusmenu.Server.
- get_accel_group()¶
 - Returns:
 Either a valid group or
Noneon error or none set.- Return type:
 
Gets the accel group for this client.
- menuitem_get(item)¶
 - Parameters:
 item (
Dbusmenu.Menuitem) –Dbusmenu.Menuitemto get associatedGtk.MenuItemon.- Returns:
 The
Gtk.MenuItemthat can be played with.- Return type:
 
This grabs the
Gtk.MenuItemthat is associated with theDbusmenu.Menuitem.
- menuitem_get_submenu(item)¶
 - Parameters:
 item (
Dbusmenu.Menuitem) –Dbusmenu.Menuitemto get associatedGtk.Menuon.- Returns:
 The
Gtk.Menuif there is one.- Return type:
 
This grabs the submenu associated with the menuitem.
- newitem_base(item, gmi, parent)¶
 - Parameters:
 item (
Dbusmenu.Menuitem) – TheDbusmenu.Menuitemto attach the GTK-isms togmi (
Gtk.MenuItem) – AGtk.MenuItemrepresenting 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.Menuitemside 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.