clean-up
authorladanyi
Tue, 22 Nov 2005 14:35:33 +0000
changeset 1826e07a7a8acd77
parent 1825 535d2eccfc03
child 1827 dc660ed95b31
clean-up
gui/graph_displayer_canvas-event.cc
     1.1 --- a/gui/graph_displayer_canvas-event.cc	Tue Nov 22 10:27:25 2005 +0000
     1.2 +++ b/gui/graph_displayer_canvas-event.cc	Tue Nov 22 14:35:33 2005 +0000
     1.3 @@ -626,16 +626,10 @@
     1.4                dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
     1.5                dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT);
     1.6                Gtk::VBox* vbox = dialog.get_vbox();
     1.7 -              Gtk::Adjustment adj(
     1.8 -                  (*mapstorage.edgemap_storage[edgemap_to_edit])[active_edge],
     1.9 -                  -1000000.0,
    1.10 -                  1000000.0,
    1.11 -                  1.0, 5.0, 0.0);
    1.12 -              //TODO: find out why doesn't it work with
    1.13 -              //numeric_limits<double>::min/max
    1.14 -              Gtk::SpinButton spin(adj);
    1.15 +              Gtk::SpinButton spin(0.0, 4);
    1.16 +              spin.set_increments(1.0, 10.0);
    1.17 +              spin.set_range(-1000000.0, 1000000.0);
    1.18                spin.set_numeric(true);
    1.19 -              spin.set_digits(4);
    1.20                vbox->add(spin);
    1.21                spin.show();
    1.22                switch (dialog.run())
    1.23 @@ -719,16 +713,10 @@
    1.24                dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    1.25                dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT);
    1.26                Gtk::VBox* vbox = dialog.get_vbox();
    1.27 -              Gtk::Adjustment adj(
    1.28 -                  (*mapstorage.nodemap_storage[nodemap_to_edit])[active_node],
    1.29 -                  -1000000.0,
    1.30 -                  1000000.0,
    1.31 -                  1.0, 5.0, 0.0);
    1.32 -              //TODO: find out why doesn't it work with
    1.33 -              //numeric_limits<double>::min/max
    1.34 -              Gtk::SpinButton spin(adj);
    1.35 +              Gtk::SpinButton spin(0.0, 4);
    1.36 +              spin.set_increments(1.0, 10.0);
    1.37 +              spin.set_range(-1000000.0, 1000000.0);
    1.38                spin.set_numeric(true);
    1.39 -              spin.set_digits(4);
    1.40                vbox->add(spin);
    1.41                spin.show();
    1.42                switch (dialog.run())