summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/spinbutton.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-04-11 19:20:20 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-04-11 19:20:20 +0000
commitae45a98ae609d27cf5cf8471c2cea685bde5da70 (patch)
tree5ed81c53c032092299a5315f9203bcd565511e68 /src/ui/widget/spinbutton.h
parentrevert silly error in r10147 (diff)
downloadinkscape-ae45a98ae609d27cf5cf8471c2cea685bde5da70.tar.gz
inkscape-ae45a98ae609d27cf5cf8471c2cea685bde5da70.zip
Use the subclassed SpinButton class for numeric inputs, such that '.' and ',' both can be used as decimal point.
(related to bug 484187) (bzr r10159)
Diffstat (limited to 'src/ui/widget/spinbutton.h')
-rw-r--r--src/ui/widget/spinbutton.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/widget/spinbutton.h b/src/ui/widget/spinbutton.h
index d9b382b08..408310d09 100644
--- a/src/ui/widget/spinbutton.h
+++ b/src/ui/widget/spinbutton.h
@@ -25,8 +25,10 @@ namespace Widget {
class SpinButton : public Gtk::SpinButton
{
public:
- SpinButton() : Gtk::SpinButton() {};
- /// @todo perhaps more constructors should be added here
+ SpinButton(double climb_rate = 0.0, guint digits = 0)
+ : Gtk::SpinButton(climb_rate, digits) {};
+ explicit SpinButton(Gtk::Adjustment& adjustment, double climb_rate = 0.0, guint digits = 0)
+ : Gtk::SpinButton(adjustment, climb_rate, digits) {};
virtual ~SpinButton() {};