summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b2e70d)
raw | patch | inline | side by side (parent: 6b2e70d)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 18 Nov 2007 14:26:08 +0000 (14:26 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 18 Nov 2007 14:26:08 +0000 (14:26 +0000) |
index b4568d2e45110ad6ad4d26d9116549bfe6b8d11f..b58a53297ecf30be8a6a08e76e61535d0df172ee 100644 (file)
@@ -359,15 +359,28 @@ CanvasXYGrid::CanvasXYGrid (SPNamedView * nv, Inkscape::XML::Node * in_repr, SPD
table.set_spacings(2);
vbox.pack_start(table, false, false, 0);
+ Inkscape::UI::Widget::ScalarUnit * sutemp;
_rumg.init (_("Grid _units:"), "units", _wr, repr, doc);
_rsu_ox.init (_("_Origin X:"), _("X coordinate of grid origin"),
"originx", _rumg, _wr, repr, doc);
+ sutemp = _rsu_ox.getSU();
+ sutemp->setDigits(4);
+ sutemp->setIncrements(0.1, 1.0);
_rsu_oy.init (_("O_rigin Y:"), _("Y coordinate of grid origin"),
"originy", _rumg, _wr, repr, doc);
+ sutemp = _rsu_oy.getSU();
+ sutemp->setDigits(4);
+ sutemp->setIncrements(0.1, 1.0);
_rsu_sx.init (_("Spacing _X:"), _("Distance between vertical grid lines"),
"spacingx", _rumg, _wr, repr, doc);
+ sutemp = _rsu_sx.getSU();
+ sutemp->setDigits(4);
+ sutemp->setIncrements(0.1, 1.0);
_rsu_sy.init (_("Spacing _Y:"), _("Distance between horizontal grid lines"),
"spacingy", _rumg, _wr, repr, doc);
+ sutemp = _rsu_sy.getSU();
+ sutemp->setDigits(4);
+ sutemp->setIncrements(0.1, 1.0);
_rcp_gcol.init (_("Grid line _color:"), _("Grid line color"),
_("Color of grid lines"), "color", "opacity", _wr, repr, doc);
_rcp_gmcol.init (_("Ma_jor grid line color:"), _("Major grid line color"),
index 88e9f2bf2b04b269edbb9853bf8c24b5c96f5b23..7e71a0e3e1db6a727fec147ee39a2813fbbc68d3 100644 (file)
label_def, 0
};
attach_all(_page_grids.table(), widget_array, G_N_ELEMENTS(widget_array));
- _page_grids.table().attach(_grids_notebook, 0, 3, 4, 5,
- Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0);
+ _page_grids.table().attach(_grids_notebook, 0, 3, 4, 5, Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0);
}
index 55f81cfaffa4af689a09f72301848fd2eaf11b82..804a403f6dab0d73db055963b6137a05aba0379f 100644 (file)
@@ -410,6 +410,7 @@ RegisteredSuffixedInteger::init (const Glib::ustring& label, const Glib::ustring
_label->set_alignment (1.0, 0.5);
_label->set_use_underline();
_sb = new Gtk::SpinButton (_adj, 1.0, 0);
+ _sb->set_numeric();
_label->set_mnemonic_widget (*_sb);
_suffix = new Gtk::Label (suffix);
_hbox.pack_start (*_sb, true, true, 0);
index ae90e4a0f96b86536d929247a6dcb19a101a5cd0..743c879f06ce102941e2b4e093840da6ea244f07 100644 (file)
--- a/src/ui/widget/scalar.cpp
+++ b/src/ui/widget/scalar.cpp
: Labelled(label, tooltip, new Gtk::SpinButton(), suffix, icon, mnemonic),
setProgrammatically(false)
{
+ static_cast<Gtk::SpinButton*>(_widget)->set_numeric();
}
/**
: Labelled(label, tooltip, new Gtk::SpinButton(0.0, digits), suffix, icon, mnemonic),
setProgrammatically(false)
{
+ static_cast<Gtk::SpinButton*>(_widget)->set_numeric();
}
/**
: Labelled(label, tooltip, new Gtk::SpinButton(adjust, 0.0, digits), suffix, icon, mnemonic),
setProgrammatically(false)
{
+ static_cast<Gtk::SpinButton*>(_widget)->set_numeric();
}
/** Fetches the precision of the spin buton */