[GRASS-SVN] r62907 - in grass/trunk/vector: v.label v.lrs/v.lrs.label

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 25 00:54:03 PST 2014


Author: martinl
Date: 2014-11-25 00:54:03 -0800 (Tue, 25 Nov 2014)
New Revision: 62907

Modified:
   grass/trunk/vector/v.label/main.c
   grass/trunk/vector/v.lrs/v.lrs.label/main.c
Log:
use G_OPT_C_BG (#2409)

Modified: grass/trunk/vector/v.label/main.c
===================================================================
--- grass/trunk/vector/v.label/main.c	2014-11-25 08:17:40 UTC (rev 62906)
+++ grass/trunk/vector/v.label/main.c	2014-11-25 08:54:03 UTC (rev 62907)
@@ -183,8 +183,6 @@
     Hwidth->guisection = _("Effects");
 
     Bcolor = G_define_standard_option(G_OPT_C_BG);
-    Bcolor->key = "background";
-    Bcolor->label = _("Background color");
     Bcolor->answer = "none";
     Bcolor->guisection = _("Colors");
 

Modified: grass/trunk/vector/v.lrs/v.lrs.label/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.label/main.c	2014-11-25 08:17:40 UTC (rev 62906)
+++ grass/trunk/vector/v.lrs/v.lrs.label/main.c	2014-11-25 08:54:03 UTC (rev 62907)
@@ -224,10 +224,7 @@
     Hwidth->answer = "0";
     Hwidth->options = "0-100";
 
-    Bcolor = G_define_option();
-    Bcolor->key = "background";
-    Bcolor->description = _("Background color");
-    Bcolor->type = TYPE_STRING;
+    Bcolor = G_define_standard_option(G_OPT_C_BG);
     Bcolor->answer = "none";
     Bcolor->options =
 	"none,aqua,black,blue,brown,cyan,gray,green,grey,indigo,magenta,"



More information about the grass-commit mailing list