class documentation

class PathBarMainWindowExtension(MainWindowExtension): (source)

View In Hierarchy

Undocumented

Method __init__ Constructor @param plugin: the plugin object to which this extension belongs @param window: the Gtk.Window being extended
Method on_page_changed Undocumented
Method set_pathbar Set the pathbar type
Method teardown No summary
Instance Variable pathbar Undocumented
Class Variable _klasses Undocumented

Inherited from MainWindowExtension:

Method on_destroy Undocumented
Instance Variable uistate Undocumented
Instance Variable window Undocumented

Inherited from ActionExtensionBase (via MainWindowExtension):

Method add_to_headerbar Undocumented
Method remove_from_headerbar Undocumented
Method set_action_in_headerbar Undocumented
Instance Variable actiongroup Undocumented
Static Method _uimanager_xml Undocumented
Method _add_actions Undocumented
Instance Variable _uimanager Undocumented
Instance Variable _uimanager_ids Undocumented

Inherited from ExtensionBase (via MainWindowExtension, ActionExtensionBase):

Method destroy Called when the plugin is being destroyed Calls teardown() followed by the teardown() methods of parent base classes.
Class Variable __signals__ Undocumented
Instance Variable obj the extendable object
Instance Variable plugin the plugin object to which this extension belongs

Inherited from SignalEmitter (via MainWindowExtension, ActionExtensionBase, ExtensionBase):

Method __new__ Undocumented
Method block_signals Returns a context manager for blocking one or more signals
Method connect Register a handler for a specific object.
Method connect_after Like connect() but handler will be called after default handler
Method disconnect Undocumented
Method emit Undocumented
Method emit_return_first Emits a signal and stops emission on the first handler that returns a not-None value.
Method emit_return_iter Returns an generator that calls one handler on each iteration and yields the return values. This allows aggregating return values.
Method _connect Undocumented
Method _setup_signal Undocumented
Method _teardown_signal Undocumented

Inherited from ConnectorMixin (via MainWindowExtension, ActionExtensionBase, ExtensionBase):

Method connectto Connect to signals of another object E.g.:
Method connectto_all Convenience method to combine multiple calls to connectto().
Method disconnect_all Disconnect all signals that have been connected with connectto and friends. Typically called when you want to destroy this object.
Method disconnect_from Disc all signals that have been connected with connectto and friends to a specific object.
Method _disconnect_from Undocumented
Instance Variable _connected_signals Undocumented
def __init__(self, plugin, window): (source)
Constructor
Parameters
pluginthe plugin object to which this extension belongs
windowthe Gtk.Window being extended
def on_page_changed(self, window, page): (source)

Undocumented

@radio_action(_('P_athbar'), radio_option(PATHBAR_NONE, _('_None')), radio_option(PATHBAR_RECENT, _('_Recent pages')), radio_option(PATHBAR_RECENT_CHANGED, _('Recently _Changed pages')), radio_option(PATHBAR_HISTORY, _('_History')), radio_option(PATHBAR_PATH, _('_Page Hierarchy')), menuhints='view')
def set_pathbar(self, type): (source)
Set the pathbar type
Parameters
type

the type of pathbar, one of:

  • PATHBAR_NONE to hide the pathbar
  • PATHBAR_RECENT to show recent pages
  • PATHBAR_RECENT_CHANGED to show recently changed pagesF
  • PATHBAR_HISTORY to show the history
  • PATHBAR_PATH to show the namespace path
def teardown(self): (source)
Remove changes made by this class from the extended object To be overloaded by child classes
Note
do not call parent class teardown() here, that is already taken care of by destroy()
pathbar = (source)

Undocumented

_klasses = (source)

Undocumented