From 7e1f9b0ff682eb03394692fbe7b38a2838fbd29a Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 9 Apr 2011 00:16:53 +0200 Subject: allow other than numeric characters in guideline dialog Fixed bugs: - https://launchpad.net/bugs/484187 (bzr r10149) --- src/ui/dialog/guides.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/guides.cpp b/src/ui/dialog/guides.cpp index 1ac1e5d82..b0b4705b1 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(); + // _spin_button_x.set_numeric(); // not setting numeric enables writing '.' instead of ',' for decimal _spin_button_y.configure(_adjustment_y, 1.0 , 3); - _spin_button_y.set_numeric(); + //_spin_button_y.set_numeric(); // not setting numeric enables writing '.' instead of ',' for decimal _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(); + //_spin_angle.set_numeric(); // not setting numeric enables writing '.' instead of ',' for decimal _spin_angle.show(); _layout_table.attach(_label_degrees, 1, 2, 8, 9, Gtk::EXPAND | Gtk::FILL, Gtk::FILL); -- cgit v1.2.3