Devhelp.Sidebar¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Grid (21), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
|
Properties¶
- Inherited:
Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Devhelp.Sidebar(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(book_manager)¶
- Parameters:
book_manager (
Devhelp.BookManager
orNone
) – aDevhelp.BookManager
. This parameter is deprecated, you should just passNone
.- Returns:
a new
Devhelp.Sidebar
widget.- Return type:
Deprecated since version 3.30: Use
Devhelp.Sidebar.new2
() instead.
- classmethod new2(profile)¶
- Parameters:
profile (
Devhelp.Profile
orNone
) – aDevhelp.Profile
, orNone
for the default profile.- Returns:
a new
Devhelp.Sidebar
widget.- Return type:
New in version 3.30.
- get_profile()¶
- Returns:
the
Devhelp.Profile
of self.- Return type:
New in version 3.30.
- get_selected_link()¶
- Returns:
the currently selected
Devhelp.Link
in the visibleGtk.TreeView
of self, orNone
if the selection is empty or if a language group row is selected. Unref withDevhelp.Link.unref
() when no longer needed.- Return type:
Devhelp.Link
orNone
Note: the return value of this function is not necessarily the same as the last
Devhelp.Link
emitted by theDevhelp.Sidebar
::link-selected
signal. See the documentation ofDevhelp.Sidebar
::link-selected
.New in version 3.30.
- select_uri(uri)¶
- Parameters:
uri (
str
) – the URI to select.
Calls
Devhelp.BookTree.select_uri
().
- set_search_focus()¶
Gives the focus to the search entry.
- do_link_selected(link) virtual¶
- Parameters:
link (
Devhelp.Link
) –
Signal Details¶
- Devhelp.Sidebar.signals.link_selected(sidebar, link)¶
- Signal Name:
link-selected
- Flags:
- Parameters:
sidebar (
Devhelp.Sidebar
) – The object which received the signallink (
Devhelp.Link
) – the selectedDevhelp.Link
.
The
::link-selected
signal is emitted when:One row in one of the
Gtk.TreeView
's is selected and contains aDevhelp.Link
(i.e. when the row is not a language group);Or if there is an exact match returned by
Devhelp.KeywordModel.filter
() when a search occurs.Note that
Devhelp.Sidebar.get_selected_link
() takes into account only the former, not the latter. So the last link emitted with this signal is not necessarily the same as the current return value ofDevhelp.Sidebar.get_selected_link
().
Property Details¶
- Devhelp.Sidebar.props.profile¶
- Name:
profile
- Type:
- Default Value:
- Flags:
The
Devhelp.Profile
. If set toNone
, the default profile as returned byDevhelp.Profile.get_default
() is used.New in version 3.30.