Changeset f1cbb7a


Ignore:
Timestamp:
Jun 22, 2003, 9:43:28 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:
a6560fe
Parents:
ef56a67
Message:
Don't die if the a style name can't be found.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    ref56a67 rf1cbb7a  
    30423042void owl_function_change_style(owl_view *v, char *stylename)
    30433043{
    3044   owl_view_set_style(v, owl_global_get_style_by_name(&g, stylename));
     3044  owl_style *s;
     3045
     3046  s=owl_global_get_style_by_name(&g, stylename);
     3047  if (!s) {
     3048    owl_function_makemsg("No style named %s", stylename);
     3049    return;
     3050  }
     3051  owl_view_set_style(v, s);
    30453052  owl_messagelist_invalidate_formats(owl_global_get_msglist(&g));
    30463053  owl_function_calculate_topmsg(OWL_DIRECTION_DOWNWARDS);
Note: See TracChangeset for help on using the changeset viewer.