summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/guides.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-04-08 23:19:48 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-04-08 23:19:48 +0000
commitcba60dd473848d5e980894dd4a48fdeb9890a8ac (patch)
tree6834f9cadac45da02893f2769acbe3537e45b28c /src/ui/dialog/guides.cpp
parentallow other than numeric characters in guideline dialog (diff)
downloadinkscape-cba60dd473848d5e980894dd4a48fdeb9890a8ac.tar.gz
inkscape-cba60dd473848d5e980894dd4a48fdeb9890a8ac.zip
add a subclassed spinbutton class. this numeric entry box accepts both ',' and '.' as the decimal point when in numeric mode.
(bzr r10150)
Diffstat (limited to 'src/ui/dialog/guides.cpp')
-rw-r--r--src/ui/dialog/guides.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/guides.cpp b/src/ui/dialog/guides.cpp
index b0b4705b1..1ac1e5d82 100644
--- a/src/ui/dialog/guides.cpp
+++ b/src/ui/dialog/guides.cpp
@@ -194,9 +194,9 @@ void GuidelinePropertiesDialog::_setup() {
sp_unit_selector_add_adjustment(SP_UNIT_SELECTOR(unit_selector), GTK_ADJUSTMENT(_adjustment_x.gobj()));
sp_unit_selector_add_adjustment(SP_UNIT_SELECTOR(unit_selector), GTK_ADJUSTMENT(_adjustment_y.gobj()));
_spin_button_x.configure(_adjustment_x, 1.0 , 3);
- // _spin_button_x.set_numeric(); // not setting numeric enables writing '.' instead of ',' for decimal
+ _spin_button_x.set_numeric();
_spin_button_y.configure(_adjustment_y, 1.0 , 3);
- //_spin_button_y.set_numeric(); // not setting numeric enables writing '.' instead of ',' for decimal
+ _spin_button_y.set_numeric();
_layout_table.attach(_label_X,
1, 2, 4, 5, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);
_layout_table.attach(_spin_button_x,
@@ -213,7 +213,7 @@ void GuidelinePropertiesDialog::_setup() {
// angle spinbutton
_spin_angle.configure(_adj_angle, 5.0 , 3);
- //_spin_angle.set_numeric(); // not setting numeric enables writing '.' instead of ',' for decimal
+ _spin_angle.set_numeric();
_spin_angle.show();
_layout_table.attach(_label_degrees,
1, 2, 8, 9, Gtk::EXPAND | Gtk::FILL, Gtk::FILL);