Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::Preferences::setInt ( Glib::ustring const &  pref_path,
int  value 
)

Set an integer value.

Set an integer attribute of a preference.

Parameters:
pref_path Path of the preference to modify
value The new value of the pref attribute

Definition at line 322 of file preferences.cpp.

Referenced by Inkscape::UI::Dialog::TileDialog::HorizAlign_changed(), Inkscape::ContextVerb::perform(), SPDesktopWidget::shutdown(), sp_export_dialog_delete(), sp_lpetool_toolbox_prep(), Inkscape::UI::Dialog::TileDialog::updateSelection(), and Inkscape::UI::Dialog::TileDialog::VertAlign_changed().

{
    gchar intstr[32];
    g_snprintf(intstr, 32, "%d", value);
    _setRawValue(pref_path, intstr);
}


Generated by  Doxygen 1.6.0   Back to index