Changeset e075479


Ignore:
Timestamp:
Jun 26, 2003, 6:20:04 AM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8d24696
Parents:
ceb8cfb
Message:
Set the default_style appropriately.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rce7db4d re075479  
    227227  }
    228228
    229   /* if the config defaults a formatting function, add 'perl' as a style */
     229  /* if the config defines a formatting function, add 'perl' as a style */
    230230  if (owl_global_is_config_format(&g)) {
    231231    owl_function_debugmsg("Found perl formatting");
     
    233233    owl_style_create_perl(s, "perl", "owl::format_msg");
    234234    owl_global_add_style(&g, s);
     235    owl_global_set_default_style(&g, "perl");
    235236  }
    236237
     
    268269  }
    269270
    270   /* set the default style, based on userclue and presence of a
    271    *  formatting function */
     271  /* set the startup and default style, based on userclue and presence of a
     272   * formatting function */
    272273  if (owl_global_is_config_format(&g)) {
    273274    owl_view_set_style(owl_global_get_current_view(&g), owl_global_get_style_by_name(&g, "perl"));
     275    owl_global_set_default_style(&g, "perl");
    274276  } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) {
    275277    owl_view_set_style(owl_global_get_current_view(&g), owl_global_get_style_by_name(&g, "default"));
     278    owl_global_set_default_style(&g, "default");
    276279  } else {
    277280    owl_view_set_style(owl_global_get_current_view(&g), owl_global_get_style_by_name(&g, "basic"));
     281    owl_global_set_default_style(&g, "basic");
    278282  }
    279283
Note: See TracChangeset for help on using the changeset viewer.