# HG changeset patch # User ladanyi # Date 1132670133 0 # Node ID e07a7a8acd7727aa884705ee53fd28cc8b73cc6b # Parent 535d2eccfc038701b9edc3f13e9fc868756556d7 clean-up diff -r 535d2eccfc03 -r e07a7a8acd77 gui/graph_displayer_canvas-event.cc --- a/gui/graph_displayer_canvas-event.cc Tue Nov 22 10:27:25 2005 +0000 +++ b/gui/graph_displayer_canvas-event.cc Tue Nov 22 14:35:33 2005 +0000 @@ -626,16 +626,10 @@ dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT); Gtk::VBox* vbox = dialog.get_vbox(); - Gtk::Adjustment adj( - (*mapstorage.edgemap_storage[edgemap_to_edit])[active_edge], - -1000000.0, - 1000000.0, - 1.0, 5.0, 0.0); - //TODO: find out why doesn't it work with - //numeric_limits::min/max - Gtk::SpinButton spin(adj); + Gtk::SpinButton spin(0.0, 4); + spin.set_increments(1.0, 10.0); + spin.set_range(-1000000.0, 1000000.0); spin.set_numeric(true); - spin.set_digits(4); vbox->add(spin); spin.show(); switch (dialog.run()) @@ -719,16 +713,10 @@ dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT); Gtk::VBox* vbox = dialog.get_vbox(); - Gtk::Adjustment adj( - (*mapstorage.nodemap_storage[nodemap_to_edit])[active_node], - -1000000.0, - 1000000.0, - 1.0, 5.0, 0.0); - //TODO: find out why doesn't it work with - //numeric_limits::min/max - Gtk::SpinButton spin(adj); + Gtk::SpinButton spin(0.0, 4); + spin.set_increments(1.0, 10.0); + spin.set_range(-1000000.0, 1000000.0); spin.set_numeric(true); - spin.set_digits(4); vbox->add(spin); spin.show(); switch (dialog.run())