Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void Inkscape::Preferences::setBool ( Glib::ustring const &  pref_path,
bool  value 
)

Set a Boolean value.

Set a boolean attribute of a preference.

Parameters:
pref_pathPath of the preference to modify
valueThe new value of the pref attribute
Todo:
Boolean values should be stored as "true" and "false", but this is not possible due to an interaction with event contexts. Investigate this in depth.

Definition at line 418 of file preferences.cpp.

Referenced by Inkscape::Extension::ErrorFileNotice::checkbox_toggle(), PrefPusher::handleToggled(), Inkscape::Extension::ParamBool::set(), Inkscape::UI::Dialog::FileSaveDialogImplGtk::show(), SPDesktopWidget::shutdown(), Inkscape::UI::View::EditWidget::toggleRulers(), and Inkscape::UI::View::EditWidget::toggleScrollbars().

{
    /// @todo Boolean values should be stored as "true" and "false",
    /// but this is not possible due to an interaction with event contexts.
    /// Investigate this in depth.
    _setRawValue(pref_path, ( value ? "1" : "0" ));
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index