Changeset f1e629d for variable.c
- Timestamp:
- Jul 6, 2003, 6:42:06 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 5d9c664
- Parents:
- 675ce49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r09489b89 rf1e629d 204 204 OWLVAR_STRING( "default_style" /* %OwlVarStub */, "default", 205 205 "name of the default formatting style", 206 "This sets the default message formatting style. Possbile\n" 207 "values include 'default' 'basic' 'oneline' and if\n" 208 "available, 'perl'\n" ), 206 "This sets the default message formatting style.\n" 207 "Styles may be created with the 'style' command.\n" 208 "Some built-in styles include:\n" 209 " default - the default owl formatting\n" 210 " basic - simple formatting\n" 211 " oneline - one line per-message\n" 212 " perl - legacy perl interface\n" 213 "\nSEE ALSO: style, show styles, view -s <style>\n" 214 ), 215 209 216 210 217 OWLVAR_INT( "edit:maxfillcols" /* %OwlVarStub:edit_maxfillcols */, 70, … … 356 363 owl_zephyr_set_locationinfo(owl_global_get_hostname(&g), newval); 357 364 return(owl_variable_string_set_default(v, newval)); 358 }359 360 int owl_variable_style_set(owl_variable *v, void *newval) {361 /* Invalidate all message formats first */362 int ret;363 owl_style *s;364 365 s=owl_global_get_style_by_name(&g, newval);366 if (!s) {367 /* this message won't get seen, we'll need to deal with that later */368 owl_function_makemsg("No style named '%s' exists.", newval);369 return(0);370 }371 372 owl_messagelist_invalidate_formats(owl_global_get_msglist(&g));373 ret=owl_variable_string_set_default(v, newval);374 owl_function_calculate_topmsg(OWL_DIRECTION_DOWNWARDS);375 owl_mainwin_redisplay(owl_global_get_mainwin(&g));376 return(ret);377 365 } 378 366
Note: See TracChangeset
for help on using the changeset viewer.