Functions¶
|
|
|
|
|
|
|
Details¶
- Devhelp.application_window_bind_sidebar_and_notebook(sidebar, notebook)¶
- Parameters:
sidebar (
Devhelp.Sidebar
) – aDevhelp.Sidebar
.notebook (
Devhelp.Notebook
) – an emptyDevhelp.Notebook
.
Binds sidebar and notebook:
When the
Devhelp.Sidebar
::link-selected
signal is emitted, open the URI in the activeDevhelp.WebView
.On
Gtk.Notebook
::switch-page
or when the user clicks on a link, callsDevhelp.Sidebar.select_uri
() with the new active URI.
You need to call this function when the
Devhelp.Notebook
is empty, i.e. before adding the firstDevhelp.Tab
.Note that this function doesn’t take a “self” window parameter, to be more flexible: it is possible to have several pairs of
Devhelp.Sidebar
/Devhelp.Notebook
per window, to show differentDevhelp.Profile
's.New in version 3.30.
- Devhelp.finalize()¶
Free the resources allocated by Devhelp. For example it unrefs the singleton objects.
It is not mandatory to call this function, it’s just to be friendlier to memory debugging tools. This function is meant to be called at the end of main(). It can be called several times.
New in version 3.26.
- Devhelp.init()¶
Initializes the Devhelp library (e.g. for the internationalization).
This function can be called several times, but is meant to be called at the beginning of main(), before any other Devhelp function call.
Since version 3.38, this function enables the WebKitGTK sandbox by calling
WebKit2.WebContext.set_sandbox_enabled
() on the defaultWebKit2.WebContext
.
- Devhelp.link_type_to_string(link_type)¶
- Parameters:
link_type (
Devhelp.LinkType
) – aDevhelp.LinkType
.- Returns:
a string representation of the
Devhelp.LinkType
, translated in the current language.- Return type: