Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::UI::Dialog::TileDialog::on_col_spinbutton_changed (  ) 

changed value in # of rows spinbox.

Definition at line 391 of file tile.cpp.

References Inkscape::Preferences::get(), Inkscape::Selection::itemList(), and Inkscape::Preferences::setDouble().

Referenced by Grid_Arrange(), and TileDialog().

    // quit if run by the attr_changed listener
    if (updating) {

    // in turn, prevent listener from responding
    updating = true;
    SPDesktop *desktop = getDesktop();
    Inkscape::Selection *selection = sp_desktop_selection (desktop);

    GSList const *items = selection->itemList();
    int selcount = g_slist_length((GSList *)items);

    double PerRow = ceil(selcount / NoOfRowsSpinner.get_value());
    Inkscape::Preferences *prefs = Inkscape::Preferences::get();
    prefs->setDouble("/dialogs/gridtiler/NoOfCols", PerRow);


Generated by  Doxygen 1.6.0   Back to index