[Lemon-commits] [lemon_svn] ladanyi: r2376 - hugo/trunk/gui

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:52:11 CET 2006


Author: ladanyi
Date: Tue Nov 22 15:35:33 2005
New Revision: 2376

Modified:
   hugo/trunk/gui/graph_displayer_canvas-event.cc

Log:
clean-up

Modified: hugo/trunk/gui/graph_displayer_canvas-event.cc
==============================================================================
--- hugo/trunk/gui/graph_displayer_canvas-event.cc	(original)
+++ hugo/trunk/gui/graph_displayer_canvas-event.cc	Tue Nov 22 15:35:33 2005
@@ -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<double>::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<double>::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())



More information about the Lemon-commits mailing list