[GRASS-SVN] r35130 - grass/branches/develbranch_6/display/d.barscale

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 31 04:49:11 EST 2008


Author: martinl
Date: 2008-12-31 04:49:11 -0500 (Wed, 31 Dec 2008)
New Revision: 35130

Modified:
   grass/branches/develbranch_6/display/d.barscale/main.c
Log:
d.barscale: fix color options


Modified: grass/branches/develbranch_6/display/d.barscale/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.barscale/main.c	2008-12-31 04:54:04 UTC (rev 35129)
+++ grass/branches/develbranch_6/display/d.barscale/main.c	2008-12-31 09:49:11 UTC (rev 35130)
@@ -80,24 +80,13 @@
     scalebar->key = 's';
     scalebar->description = _("Draw a scale bar only");
 
-    opt1 = G_define_option();
+    opt1 = G_define_standard_option(G_OPT_C_BG);
     opt1->key = "bcolor";
-    opt1->type = TYPE_STRING;
-    opt1->answer = DEFAULT_BG_COLOR;
-    opt1->required = NO;
-    opt1->description =
-	_("Background color, either a standard GRASS color, R:G:B triplet, or \"none\"");
-    opt1->gisprompt = GISPROMPT_COLOR;
 
-    opt2 = G_define_option();
+    opt2 = G_define_standard_option(G_OPT_C_FG);
     opt2->key = "tcolor";
-    opt2->type = TYPE_STRING;
-    opt2->answer = DEFAULT_FG_COLOR;
-    opt2->required = NO;
-    opt2->description =
-	_("Text color, either a standard GRASS color or R:G:B triplet");
-    opt2->gisprompt = GISPROMPT_COLOR;
-
+    opt2->label = _("Text color");
+    
     opt3 = G_define_option();
     opt3->key = "at";
     opt3->key_desc = "x,y";



More information about the grass-commit mailing list