[GRASS-SVN] r41071 - in grass/branches/develbranch_6/gui: scripts tcltk/gis.m

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 18 00:30:23 EST 2010


Author: hamish
Date: 2010-02-18 00:30:22 -0500 (Thu, 18 Feb 2010)
New Revision: 41071

Modified:
   grass/branches/develbranch_6/gui/scripts/d.path.sh
   grass/branches/develbranch_6/gui/tcltk/gis.m/gmmenu.tcl
Log:
tweak d.path wrapper so that it works in both gis.m and wxypthon

Modified: grass/branches/develbranch_6/gui/scripts/d.path.sh
===================================================================
--- grass/branches/develbranch_6/gui/scripts/d.path.sh	2010-02-18 05:13:08 UTC (rev 41070)
+++ grass/branches/develbranch_6/gui/scripts/d.path.sh	2010-02-18 05:30:22 UTC (rev 41071)
@@ -28,7 +28,7 @@
 #%End
 #%Flag
 #% key: b
-#% description: Render bold lines
+#% description: Do not render bold lines
 #% guisection: Rendering
 #%End
 #%Option
@@ -133,6 +133,8 @@
     exit 1
 fi
 
+unset GRASS_UI_TERM
+
 if [ "$1" != "@ARGS_PARSED@" ] ; then
     exec g.parser "$0" "$@"
 fi
@@ -145,7 +147,7 @@
 else
     flag_g=""
 fi
-if [ "$GIS_FLAG_B" -eq 1 ] ; then
+if [ "$GIS_FLAG_B" -eq 0 ] ; then
     flag_b="-b"
 else
     flag_b=""

Modified: grass/branches/develbranch_6/gui/tcltk/gis.m/gmmenu.tcl
===================================================================
--- grass/branches/develbranch_6/gui/tcltk/gis.m/gmmenu.tcl	2010-02-18 05:13:08 UTC (rev 41070)
+++ grass/branches/develbranch_6/gui/tcltk/gis.m/gmmenu.tcl	2010-02-18 05:30:22 UTC (rev 41071)
@@ -491,7 +491,7 @@
 		{command {[G_msg "Display shortest route"]} {} "d.path: Display shortest route along network between 2 nodes (visualization only)" {} -command {
 			unset env(GRASS_RENDER_IMMEDIATE)
 			guarantee_xmon
-			spawn d.path.sh -b --ui
+			spawn d.path.sh
 			set env(GRASS_RENDER_IMMEDIATE) "TRUE"}}
 		{command {[G_msg "Split net"]} {} "v.net.iso: Split net into bands between cost isolines" {} -command {execute v.net.iso }}
 		{command {[G_msg "Steiner tree"]} {} "v.net.steiner: Create Steiner tree for network and given terminals" {} -command {execute v.net.steiner }}



More information about the grass-commit mailing list