[GRASS-SVN] r61254 - grass/trunk/display/d.rast.num
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 14 11:27:46 PDT 2014
Author: wenzeslaus
Date: 2014-07-14 11:27:46 -0700 (Mon, 14 Jul 2014)
New Revision: 61254
Modified:
grass/trunk/display/d.rast.num/main.c
Log:
d.rast.num: fix grid option label (was Backgroud color), readable lables, text color first
Modified: grass/trunk/display/d.rast.num/main.c
===================================================================
--- grass/trunk/display/d.rast.num/main.c 2014-07-14 08:51:15 UTC (rev 61253)
+++ grass/trunk/display/d.rast.num/main.c 2014-07-14 18:27:46 UTC (rev 61254)
@@ -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