Dbusmenu-0.4 Python API Documentation

Class: Dbusmenu.Client

Known subclasses: DbusmenuGtk.Client

Properties

unknown_{http://www.gtk.org/introspection/core/1.0}type"status"read-only

bool"group-events"read/write

string"dbus-name"construct-only

string"dbus-object"construct-only

unknown_{http://www.gtk.org/introspection/core/1.0}type"text-direction"read-only

Signals

void"new-menuitem"(self, client, object)

void"layout-updated"(self, client)

void"item-activate"(self, client, object, p0)

void"root-changed"(self, client, object)

void"icon-theme-dirs-changed"(self, client, object)

void"event-result"(self, client, object, p0, p1, p2, p3)

Constructors

 new(name, object)

Methods

booladd_type_handler(type, newfunc)

booladd_type_handler_full(type, newfunc, user_data, destroy_func)

Array<utf8>get_icon_paths()

Dbusmenu.Menuitemget_root()

Dbusmenu.Statusget_status()

Dbusmenu.TextDirectionget_text_direction()

Class: Dbusmenu.Menuitem

Known subclasses: Dbusmenu.MenuitemProxy

This is the #GObject based object that represents a menu item. It gets created the same on both the client and the server side and libdbusmenu-glib does the work of making this object model appear on both sides of DBus. Simple really, though through updates and people coming on and off the bus it can lead to lots of fun complex scenarios.

Properties

int"id"construct-only

Signals

void"realized"(self, menuitem)

void"show-to-user"(self, menuitem, object)

void"child-added"(self, menuitem, object, p0)

bool"event"(self, menuitem, object, p0, p1)

void"property-changed"(self, menuitem, object, p0)

bool"about-to-show"(self, menuitem)

void"child-removed"(self, menuitem, object)

void"item-activated"(self, menuitem, object)

void"child-moved"(self, menuitem, object, p0, p1)

Constructors

 new_with_id(id)

 new()

Methods

boolchild_add_position(child, position)

voidchild_added(position)

boolchild_append(child)

boolchild_delete(child)

Dbusmenu.Menuitemchild_find(id)

voidchild_moved(newpos, oldpos)

boolchild_prepend(child)

voidchild_removed()

boolchild_reorder(child, position)

Dbusmenu.Menuitemfind_id(id)

voidforeach(func, data)

GLib.Listget_children()

intget_id()

Dbusmenu.Menuitemget_parent()

intget_position(parent)

intget_position_realized(parent)

boolget_root()

voidhandle_event(name, variant, timestamp)

GLib.HashTableproperties_copy()

GLib.Listproperties_list()

boolproperty_exist(property)

stringproperty_get(property)

boolproperty_get_bool(property)

Array<guint8>, Dbusmenu.gsizeproperty_get_byte_array(property)

intproperty_get_int(property)

GLib.Variantproperty_get_variant(property)

voidproperty_remove(property)

boolproperty_set(property, value)

boolproperty_set_bool(property, value)

boolproperty_set_byte_array(property, value, nelements)

boolproperty_set_int(property, value)

boolproperty_set_variant(property, value)

voidsend_about_to_show(cb, cb_data)

boolset_parent(parent)

voidset_root(root)

voidshow_to_user(timestamp, cb_data)

GLib.Listtake_children()

boolunparent()

Class: Dbusmenu.MenuitemProxy

Subclass of: Dbusmenu.Menuitem

Properties

Dbusmenu.Menuitem"menu-item"construct-only

Constructors

 new(mi)

Methods

Dbusmenu.Menuitemget_wrapped()

Class: Dbusmenu.Server

Properties

unknown_{http://www.gtk.org/introspection/core/1.0}type"status"read/write

int"version"read-only

Dbusmenu.Menuitem"root-node"read/write

string"dbus-object"construct-only

unknown_{http://www.gtk.org/introspection/core/1.0}type"text-direction"read/write

Signals

void"item-property-updated"(self, server, object, p0, p1)

void"item-activation-requested"(self, server, object, p0)

void"layout-updated"(self, server, object, p0)

void"item-updated"(self, server, object)

Constructors

 new(object)

Methods

Array<utf8>get_icon_paths()

Dbusmenu.Statusget_status()

Dbusmenu.TextDirectionget_text_direction()

voidset_icon_paths(icon_paths)

voidset_root(root)

voidset_status(status)

voidset_text_direction(dir)

Enum: Dbusmenu.Status

NORMAL0NOTICE1

Enum: Dbusmenu.TextDirection

NONE0LTR1RTL2