# HG changeset patch # User ladanyi # Date 1132670133 0 # Node ID ee2bd58fdc30b87a0fe2ad8507fb845c31d4439e # Parent 55cf06f149810e57cf1bacb1504a23a2320351b5 clean-up diff -r 55cf06f14981 -r ee2bd58fdc30 graph_displayer_canvas-event.cc --- a/graph_displayer_canvas-event.cc Tue Nov 22 10:27:25 2005 +0000 +++ b/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())