GOffice.ActionComboStack

g GObject.GInterface GObject.GInterface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.Object GObject.Object Gtk.Action Gtk.Action GObject.Object->Gtk.Action GOffice.ActionComboStack GOffice.ActionComboStack Gtk.Action->GOffice.ActionComboStack Gtk.Buildable->Gtk.Action

Subclasses:

None

Methods

Inherited:

Gtk.Action (42), GObject.Object (37), Gtk.Buildable (10)

Structs:

GObject.ObjectClass (5)

pop (n)

push (str, key)

selection ()

truncate (n)

Virtual Methods

Inherited:

Gtk.Action (6), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Action (16)

Signals

Inherited:

Gtk.Action (1), GObject.Object (1)

Fields

Inherited:

Gtk.Action (1), GObject.Object (1)

Class Details

class GOffice.ActionComboStack(*args, **kwargs)
Bases:

Gtk.Action

Abstract:

No

pop(n)
Parameters:

n (int) – GOffice.count

Shorten list self by removing n off the top (or fewer if the list is shorter)

push(str, key)
Parameters:
  • str (str) – The label to push

  • key (object or None) – a key GOffice.value to id the pushed item

selection()
Returns:

the key of the item last selected in one of the proxies. Yes this interface is terrible, but we can’t return the key in the activate signal.

NOTE: see writeup in cb_combo_changed.

Return type:

object or None

truncate(n)
Parameters:

n (int) – maximum length

Ensure that list self is no longer than n, dropping any extra off the bottom.