Changeset f933403
- Timestamp:
- Oct 3, 2003, 9:10:37 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:
- 12582d3
- Parents:
- 2404c3a
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r2404c3a rf933403 3 3 2.0.8-pre-4 4 4 Added the 'source' command. 5 Fix to make 'default' style the default again. 5 6 6 7 2.0.8-pre-3 -
functions.c
r2404c3a rf933403 59 59 } 60 60 61 62 61 void owl_function_show_view(char *viewname) 63 62 { … … 375 374 } 376 375 377 378 376 void owl_function_aimwrite(char *to) 379 377 { … … 392 390 } 393 391 } 394 395 396 392 397 393 /* If filter is non-null, looks for the next message matching … … 503 499 } 504 500 505 506 501 void owl_function_prevmsg() 507 502 { … … 518 513 owl_function_prevmsg_full(NULL, 1, 1); 519 514 } 520 521 515 522 516 void owl_function_nextmsg_personal() … … 559 553 } 560 554 } 561 562 555 563 556 void owl_function_undeletecur(int move_after) … … 590 583 owl_mainwin_redisplay(owl_global_get_mainwin(&g)); 591 584 } 592 593 585 594 586 void owl_function_expunge() … … 627 619 owl_mainwin_redisplay(owl_global_get_mainwin(&g)); 628 620 } 629 630 621 631 622 void owl_function_firstmsg() … … 672 663 } 673 664 674 675 665 void owl_function_shift_left() 676 666 { … … 688 678 } 689 679 690 691 680 void owl_function_unsuball() 692 681 { … … 784 773 } 785 774 786 787 775 void owl_function_makemsg(char *fmt, ...) 788 776 { … … 821 809 va_end(ap); 822 810 } 823 824 811 825 812 void owl_function_openurl() … … 1038 1025 } 1039 1026 1040 1041 1027 int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines) 1042 1028 { … … 1104 1090 } 1105 1091 1106 1107 1092 void owl_function_resize() 1108 1093 { 1109 1094 owl_global_set_resize_pending(&g); 1110 1095 } 1111 1112 1096 1113 1097 void owl_function_run_buffercommand() … … 1156 1140 } 1157 1141 1158 1159 1142 void owl_function_refresh() 1160 1143 { … … 1169 1152 } 1170 1153 } 1171 1172 1154 1173 1155 void owl_function_subscribe(char *class, char *inst, char *recip) … … 1183 1165 } 1184 1166 1185 1186 1167 void owl_function_unsubscribe(char *class, char *inst, char *recip) 1187 1168 { … … 1196 1177 } 1197 1178 1198 1199 1179 void owl_function_set_cursor(WINDOW *win) 1200 1180 { 1201 1181 wnoutrefresh(win); 1202 1182 } 1203 1204 1183 1205 1184 void owl_function_full_redisplay() … … 1220 1199 owl_global_set_needrefresh(&g); 1221 1200 } 1222 1223 1201 1224 1202 void owl_function_popless_text(char *text) … … 1238 1216 owl_global_set_needrefresh(&g); 1239 1217 } 1240 1241 1218 1242 1219 void owl_function_popless_fmtext(owl_fmtext *fm) … … 1444 1421 } 1445 1422 1446 1447 1423 /* print the current message in a popup window. 1448 1424 * Use the 'default' style regardless of whatever … … 1474 1450 owl_fmtext_free(&fm); 1475 1451 } 1476 1477 1452 1478 1453 void owl_function_page_curmsg(int step) … … 1706 1681 } 1707 1682 1708 1709 1683 void owl_function_status() 1710 1684 { … … 1797 1771 owl_fmtext_free(&fm); 1798 1772 } 1799 1800 1773 1801 1774 /* if type = 0 then normal reply. … … 2061 2034 } 2062 2035 2063 2064 2036 char *owl_function_perl(int argc, char **argv, char *buff, int type) 2065 2037 { … … 2631 2603 } 2632 2604 2633 2634 2635 2605 void owl_function_color_current_filter(char *color) 2636 2606 { … … 2746 2716 } 2747 2717 } 2748 2749 2718 2750 2719 void owl_function_show_keymaps() … … 2886 2855 owl_function_makemsg("No matches found"); 2887 2856 } 2888 2889 2857 2890 2858 /* strips formatting from ztext and returns the unformatted text. … … 3054 3022 } 3055 3023 3056 3057 3058 3024 void owl_function_do_newmsgproc(void) 3059 3025 { … … 3185 3151 } 3186 3152 3187 3188 3153 void owl_function_change_style(owl_view *v, char *stylename) 3189 3154 { -
owl.c
r2404c3a rf933403 244 244 } 245 245 246 /* set the startup and default style, based on userclue and presence of a247 * formatting function */248 if (owl_global_is_config_format(&g)) {249 owl_global_set_default_style(&g, "perl");250 } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) {251 owl_global_set_default_style(&g, "default");252 } else {253 owl_global_set_default_style(&g, "basic");254 }255 256 246 /* execute the startup function in the configfile */ 257 247 perlout = owl_perlconfig_execute("owl::startup();"); … … 280 270 owl_function_loadloginsubs(NULL); 281 271 } 272 } 273 274 /* set the startup and default style, based on userclue and presence of a 275 * formatting function */ 276 if (owl_global_is_config_format(&g)) { 277 owl_global_set_default_style(&g, "perl"); 278 } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) { 279 owl_function_debugmsg("Here with default style\n"); 280 owl_global_set_default_style(&g, "default"); 281 } else { 282 owl_function_debugmsg("Here with basic style\n"); 283 owl_global_set_default_style(&g, "basic"); 282 284 } 283 285
Note: See TracChangeset
for help on using the changeset viewer.