Browse Source

more standard options in d.vect, fix wx GUI menuform, update https://trac.osgeo.org/grass/changeset/32674
merge from devbr6, https://trac.osgeo.org/grass/changeset/32676


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32677 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 years ago
parent
commit
d11a9f84e2
2 changed files with 4 additions and 8 deletions
  1. 3 7
      display/d.vect/main.c
  2. 1 1
      gui/wxpython/gui_modules/menuform.py

+ 3 - 7
display/d.vect/main.c

@@ -194,13 +194,11 @@ int main(int argc, char **argv)
     width_opt->guisection = _("Lines");
     width_opt->description = _("Line width");
 
-    wcolumn_opt = G_define_option();
+    wcolumn_opt = G_define_standard_option(G_OPT_COLUMN);
     wcolumn_opt->key = "wcolumn";
-    wcolumn_opt->type = TYPE_STRING;
     wcolumn_opt->guisection = _("Lines");
     wcolumn_opt->description =
-	_
-	("Name of column for line widths (these values will be scaled by wscale)");
+	_("Name of column for line widths (these values will be scaled by wscale)");
 
     wscale_opt = G_define_option();
     wscale_opt->key = "wscale";
@@ -229,10 +227,8 @@ int main(int argc, char **argv)
     size_opt->description = _("Symbol size");
 
     /* Labels */
-    attrcol_opt = G_define_option();
+    attrcol_opt = G_define_standard_option(G_OPT_COLUMN);
     attrcol_opt->key = "attrcol";
-    attrcol_opt->type = TYPE_STRING;
-    attrcol_opt->required = NO;
     attrcol_opt->multiple = NO;	/* or fix attr.c, around line 102 */
     attrcol_opt->guisection = _("Labels");
     attrcol_opt->description = _("Name of column to be displayed");

+ 1 - 1
gui/wxpython/gui_modules/menuform.py

@@ -1157,7 +1157,7 @@ class cmdPanel(wx.Panel):
                     p['wxGetValue'] = columns.GetStringSelection
                     columns.Bind(wx.EVT_ENTER_WINDOW, self.OnDbColumn)
                     columns.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
-                    this_sizer.Add(item=columns, proportion=0,
+                    which_sizer.Add(item=columns, proportion=0,
                                    flag=wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT, border=5)
                 # color entry
                 elif p.get('prompt','') == 'color':