Class
DevhelpSettings
Functions
dh_settings_get_default
Gets the default DhSettings object. It has the default GSettings paths (see
DhSettingsBuilder) and dh_settings_bind_all() has been called.
since: 3.30
Instance methods
dh_settings_bind_all
Binds all the DhSettings properties to their corresponding GSettings keys.
since: 3.30
dh_settings_bind_fonts
Binds the DhSettings:use-system-fonts, DhSettings:variable-font and
DhSettings:fixed-font properties to their corresponding GSettings keys.
since: 3.30
dh_settings_bind_group_books_by_language
Binds the DhSettings:group-books-by-language property to the corresponding
GSettings key.
since: 3.30
dh_settings_freeze_books_disabled_changed
Tells settings to not emit the DhSettings::books-disabled-changed signal until dh_settings_thaw_books_disabled_changed() is called.
since: 3.30
dh_settings_get_fixed_font
function instead, to take into account the DhSettings:use-system-fonts
property.
since: 3.30
dh_settings_get_selected_fonts
If DhSettings:use-system-fonts is TRUE, returns the system fonts. Otherwise
returns the values of the DhSettings:variable-font and
DhSettings:fixed-font properties.
since: 3.30
dh_settings_get_variable_font
function instead, to take into account the DhSettings:use-system-fonts
property.
since: 3.30
dh_settings_is_book_enabled
Returns whether book is enabled according to the “books-disabled” GSettings
key. If the book ID is present in “books-disabled”, this function returns
FALSE, otherwise TRUE is returned.
since: 3.30
dh_settings_set_book_enabled
Modifies the “books-disabled” GSettings key. It adds or removes the book ID
from “books-disabled”.
since: 3.30
dh_settings_set_group_books_by_language
Sets the DhSettings:group-books-by-language property.
since: 3.30
dh_settings_thaw_books_disabled_changed
Stops the effect of dh_settings_freeze_books_disabled_changed(), and emits the DhSettings::books-disabled-changed signal.
since: 3.30
Properties
Devhelp.Settings:group-books-by-language
Whether books should be grouped by programming language in the UI.
since: 3.30
Signals
Devhelp.Settings::books-disabled-changed
The ::books-disabled-changed signal is emitted when the “books-disabled” GSettings key changes.
since: 3.30
Devhelp.Settings::fonts-changed
The ::fonts-changed signal is emitted when the return values of
dh_settings_get_selected_fonts() have potentially changed.
since: 3.30
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct DevhelpSettingsClass {
GObjectClass parent;
void (* books_disabled_changed) (
DhSettings* settings
);
void (* fonts_changed) (
DhSettings* settings
);
gpointer padding;
}
No description available.
Class members
parent: GObjectClassNo description available.
books_disabled_changed: void (* books_disabled_changed) ( DhSettings* settings )No description available.
fonts_changed: void (* fonts_changed) ( DhSettings* settings )No description available.
padding: gpointerNo description available.