Changeset bc14adc


Ignore:
Timestamp:
Nov 7, 2010, 8:34:24 AM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
13e2096
Parents:
bad8ad3
git-author:
Jason Gross <jasongross9+git@gmail.com> (11/06/10 20:37:36)
git-committer:
Nelson Elhage <nelhage@mit.edu> (11/07/10 08:34:24)
Message:
Punted __unspecified__ default value for default_style.

variable.c set default_style to __unspecified__, and owl.c checked
this and then changed it to default.  This seemed to have no purpose,
and additionally would cause problems if the user decided to make a
custom style and named it __unspecified__, so I had variable.c set
default_style to default and removed the code from owl.c.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rca6a47e rbc14adc  
    565565  owl_function_source(NULL);
    566566
    567   /* Set the default style */
    568   owl_function_debugmsg("startup: setting startup and default style");
    569   if (0 != strcmp(owl_global_get_default_style(&g), "__unspecified__")) {
    570     /* the style was set by the user: leave it alone */
    571   } else {
    572     owl_global_set_default_style(&g, "default");
    573   }
    574 
    575567  owl_function_debugmsg("startup: set style for the view: %s", owl_global_get_default_style(&g));
    576568  s = owl_global_get_style_by_name(&g, owl_global_get_default_style(&g));
  • variable.c

    r7d7326c rbc14adc  
    269269                      NULL, owl_variable_tty_set, NULL),
    270270
    271   OWLVAR_STRING( "default_style" /* %OwlVarStub */, "__unspecified__",
     271  OWLVAR_STRING( "default_style" /* %OwlVarStub */, "default",
    272272                 "name of the default formatting style",
    273273                 "This sets the default message formatting style.\n"
Note: See TracChangeset for help on using the changeset viewer.