Changeset 1dab38e


Ignore:
Timestamp:
Jul 3, 2011, 8:43:07 PM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
fa981f3
Parents:
b4a678a
git-author:
Jason Gross <jgross@mit.edu> (06/27/11 01:28:53)
git-committer:
Jason Gross <jgross@mit.edu> (07/03/11 20:43:07)
Message:
Make owl_variable_dict_newvar_* give accurate validsettings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    rca749a9 r1dab38e  
    672672    owl_variable * var = owl_variable_newvar(name, summ, desc);
    673673    var->type = OWL_VARIABLE_STRING;
     674    var->validsettings = "<string>";
    674675    var->pval_default = g_strdup(initval);
    675676    var->set_fn = owl_variable_string_set_default;
     
    692693    owl_variable * var = owl_variable_newvar(name, summ, desc);
    693694    var->type = OWL_VARIABLE_INT;
     695    var->validsettings = "<int>";
    694696    var->ival_default = initval;
    695697    var->validate_fn = owl_variable_int_validate_default;
     
    714716    owl_variable * var = owl_variable_newvar(name, summ, desc);
    715717    var->type = OWL_VARIABLE_BOOL;
     718    var->validsettings = "on,off";
    716719    var->ival_default = initval;
    717720    var->validate_fn = owl_variable_bool_validate_default;
Note: See TracChangeset for help on using the changeset viewer.