Changeset 5639bf2
- Timestamp:
- Jun 21, 2003, 11:17:28 AM (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:
- be0a79f
- Parents:
- b1299da
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rc3ab155 r5639bf2 1375 1375 1376 1376 1377 /* print the current message in a popup window. 1378 * Use the 'default' style regardless of whatever 1379 * style the user may be using 1380 */ 1377 1381 void owl_function_curmsg_to_popwin() 1378 1382 { … … 1380 1384 owl_view *v; 1381 1385 owl_message *m; 1382 1383 v = owl_global_get_current_view(&g); 1384 1386 owl_style *s; 1387 owl_fmtext fm; 1388 1389 v=owl_global_get_current_view(&g); 1390 s=owl_global_get_style_by_name(&g, "default"); 1385 1391 pw=owl_global_get_popwin(&g); 1386 1392 … … 1392 1398 } 1393 1399 1394 owl_function_popless_fmtext(owl_message_get_fmtext(m)); 1400 owl_fmtext_init_null(&fm); 1401 owl_style_get_formattext(s, &fm, m); 1402 1403 owl_function_popless_fmtext(&fm); 1404 owl_fmtext_free(&fm); 1395 1405 } 1396 1406 -
style.c
rbd3f232 r5639bf2 25 25 } 26 26 27 /* Use style 's' to format message 'm' into fmtext 'fm'. 28 * 'fm' should already be be initialzed 29 */ 27 30 void owl_style_get_formattext(owl_style *s, owl_fmtext *fm, owl_message *m) 28 31 { -
stylefunc.c
rc3ab155 r5639bf2 3 3 static const char fileIdent[] = "$Id$"; 4 4 5 /* In all of these functions, 'fm' is expected to already be 6 * initialized. 7 */ 8 5 9 void owl_stylefunc_basic(owl_fmtext *fm, owl_message *m) 6 10 { … … 109 113 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 110 114 owl_text_indent(indent, text, OWL_MSGTAB); 111 owl_fmtext_init_null(fm);112 115 owl_fmtext_append_normal(fm, OWL_TABSTR); 113 116 owl_fmtext_append_normal(fm, "To: "); … … 134 137 135 138 if (owl_message_is_loginout(m)) { 136 owl_fmtext_init_null(fm);137 139 owl_fmtext_append_normal(fm, OWL_TABSTR); 138 140 if (owl_message_is_login(m)) { … … 147 149 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 148 150 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 149 owl_fmtext_init_null(fm);150 151 owl_fmtext_append_bold(fm, OWL_TABSTR); 151 152 owl_fmtext_append_bold(fm, "AIM from "); … … 160 161 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 161 162 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 162 owl_fmtext_init_null(fm);163 163 owl_fmtext_append_normal(fm, OWL_TABSTR); 164 164 owl_fmtext_append_normal(fm, "AIM sent to "); … … 179 179 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 180 180 owl_text_indent(indent, text, OWL_MSGTAB); 181 owl_fmtext_init_null(fm);182 181 owl_fmtext_append_normal(fm, OWL_TABSTR); 183 182 owl_fmtext_append_bold(fm, "OWL ADMIN "); … … 222 221 223 222 /* set the message for printing */ 224 owl_fmtext_init_null(fm);225 223 owl_fmtext_append_normal(fm, OWL_TABSTR); 226 224 … … 301 299 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 302 300 owl_text_indent(indent, text, OWL_MSGTAB); 303 owl_fmtext_init_null(fm);304 301 owl_fmtext_append_normal(fm, OWL_TABSTR); 305 302 owl_fmtext_append_normal(fm, "Zephyr sent to "); … … 326 323 327 324 if (owl_message_is_loginout(m)) { 328 owl_fmtext_init_null(fm);329 325 owl_fmtext_append_normal(fm, OWL_TABSTR); 330 326 if (owl_message_is_login(m)) { … … 339 335 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 340 336 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 341 owl_fmtext_init_null(fm);342 337 owl_fmtext_append_bold(fm, OWL_TABSTR); 343 338 owl_fmtext_append_bold(fm, "AIM from "); … … 352 347 indent=owl_malloc(strlen(owl_message_get_body(m))+owl_text_num_lines(owl_message_get_body(m))*OWL_MSGTAB+10); 353 348 owl_text_indent(indent, owl_message_get_body(m), OWL_MSGTAB); 354 owl_fmtext_init_null(fm);355 349 owl_fmtext_append_normal(fm, OWL_TABSTR); 356 350 owl_fmtext_append_normal(fm, "AIM sent to "); … … 371 365 indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10); 372 366 owl_text_indent(indent, text, OWL_MSGTAB); 373 owl_fmtext_init_null(fm);374 367 owl_fmtext_append_normal(fm, OWL_TABSTR); 375 368 owl_fmtext_append_bold(fm, "OWL ADMIN ");
Note: See TracChangeset
for help on using the changeset viewer.