Changeset 5639bf2 for functions.c


Ignore:
Timestamp:
Jun 21, 2003, 11:17:28 AM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
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
Message:
'M' now displays a message using the default style regardless
  of the current style.
Removed some memory leaks introduced in new use of styles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rc3ab155 r5639bf2  
    13751375
    13761376
     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 */
    13771381void owl_function_curmsg_to_popwin()
    13781382{
     
    13801384  owl_view *v;
    13811385  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");
    13851391  pw=owl_global_get_popwin(&g);
    13861392
     
    13921398  }
    13931399
    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);
    13951405}
    13961406
Note: See TracChangeset for help on using the changeset viewer.