[GRASS-SVN] r45094 - grass/trunk/lib/manage
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 20 07:20:19 EST 2011
Author: martinl
Date: 2011-01-20 04:20:19 -0800 (Thu, 20 Jan 2011)
New Revision: 45094
Modified:
grass/trunk/lib/manage/option.c
Log:
managelib: define guisections for option
Modified: grass/trunk/lib/manage/option.c
===================================================================
--- grass/trunk/lib/manage/option.c 2011-01-20 12:10:50 UTC (rev 45093)
+++ grass/trunk/lib/manage/option.c 2011-01-20 12:20:19 UTC (rev 45094)
@@ -47,7 +47,16 @@
G_asprintf(&str, _("%s to be %s"),
list[n].text, desc);
p->description = str;
-
+ if (strcmp(p->key, "rast") == 0 || strcmp(p->key, "rast3d") == 0)
+ p->guisection = _("Raster");
+ else if (strcmp(p->key, "vect") == 0 || strcmp(p->key, "oldvect") == 0 ||
+ strcmp(p->key, "asciivect") == 0)
+ p->guisection = _("Vector");
+ else if (strcmp(p->key, "region") == 0 || strcmp(p->key, "region3d") == 0)
+ p->guisection = _("Region");
+ else if (strcmp(p->key, "group") == 0)
+ p->guisection = _("Group");
+
return p;
}
More information about the grass-commit
mailing list