[GRASS-SVN] r43246 - grass/branches/releasebranch_6_4/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 24 13:09:23 EDT 2010
Author: martinl
Date: 2010-08-24 17:09:23 +0000 (Tue, 24 Aug 2010)
New Revision: 43246
Modified:
grass/branches/releasebranch_6_4/lib/gis/parser.c
Log:
call G_gui_wx() by default (wxGUI is default)
Modified: grass/branches/releasebranch_6_4/lib/gis/parser.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/gis/parser.c 2010-08-24 17:01:46 UTC (rev 43245)
+++ grass/branches/releasebranch_6_4/lib/gis/parser.c 2010-08-24 17:09:23 UTC (rev 43246)
@@ -1997,7 +1997,7 @@
Use G_gui_wx() or G_gui_tcltk() to generate GUI dialog.
- G_gui_tcltk() is called by default (if GRASS_GUI is not defined)
+ G_gui_wx() is called by default (if GRASS_GUI is not defined)
**/
static void G_gui(void)
{
@@ -2007,11 +2007,11 @@
if (!gui) {
gui = G_getenv("GRASS_GUI");
}
-
- if (gui && strcmp(gui, "wxpython") == 0)
+
+ if (gui && (strcmp(gui, "tcltk") == 0 || strcmp(gui, "oldtcltk") == 0))
+ G_gui_tcltk();
+ else
G_gui_wx();
- else
- G_gui_tcltk();
return;
}
More information about the grass-commit
mailing list