[GRASS-SVN] r61443 - grass/branches/releasebranch_7_0/display/d.rast.num

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 28 22:00:02 PDT 2014


Author: neteler
Date: 2014-07-28 22:00:02 -0700 (Mon, 28 Jul 2014)
New Revision: 61443

Modified:
   grass/branches/releasebranch_7_0/display/d.rast.num/main.c
Log:
d.rast.num: fix grid option label (was Background color), readable lables, text color first (trunk, r61254)

Modified: grass/branches/releasebranch_7_0/display/d.rast.num/main.c
===================================================================
--- grass/branches/releasebranch_7_0/display/d.rast.num/main.c	2014-07-29 04:56:09 UTC (rev 61442)
+++ grass/branches/releasebranch_7_0/display/d.rast.num/main.c	2014-07-29 05:00:02 UTC (rev 61443)
@@ -82,17 +82,20 @@
 
     opt.map = G_define_standard_option(G_OPT_R_MAP);
 
+    opt.text_color = G_define_standard_option(G_OPT_C_FG);
+    opt.text_color->key = "text_color";
+    opt.text_color->label = _("Text color");
+    opt.text_color->description = _("Color in GRASS format for drawing text");
+    opt.text_color->guisection = _("Colors");
+
+    /* using G_OPT_C_BG because it gives none but semantically it is not BG */
     opt.grid_color = G_define_standard_option(G_OPT_C_BG);
     opt.grid_color->key = "grid_color";
     opt.grid_color->answer = "gray";
-    opt.grid_color->description = _("Color for drawing grid, or \"none\"");
+    opt.grid_color->label = _("Grid color");
+    opt.grid_color->description = _("Color in GRASS format for drawing grid, or \"none\"");
     opt.grid_color->guisection = _("Colors");
 
-    opt.text_color = G_define_standard_option(G_OPT_C_FG);
-    opt.text_color->key = "text_color";
-    opt.text_color->description = _("Color for drawing text");
-    opt.text_color->guisection = _("Colors");
-    
     opt.prec = G_define_option();
     opt.prec->key = "dp";
     opt.prec->type = TYPE_INTEGER;



More information about the grass-commit mailing list