Changeset 4b464a4 for util.c


Ignore:
Timestamp:
Aug 25, 2002, 11:35:03 AM (19 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:
56330ff
Parents:
7131cf2
Message:
Messages now have a direciton (in, out or none).  Filters can
     this direction
Outbound messages are no longer type 'admin' but are of the
     appropriate message type (i.e. 'zephyr') and are direction
     'out'.
Smartnarrow now works on outgoing messages
'info' updated to show more information for admin and outgoing
     messages
Renamed pretty_sender to short_zuser and renamed long_sender to
     long_zuser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r1fd0b25 r4b464a4  
    392392}
    393393
    394 char *pretty_sender(char *in) {
     394char *short_zuser(char *in) {
    395395  char *out, *ptr;
    396396 
     
    406406}
    407407
    408 char *long_sender(char *in) {
     408char *long_zuser(char *in) {
    409409  char *ptr;
    410410
     
    494494}
    495495
     496void owl_hack_animate() {
     497  owl_messagelist *ml;
     498  owl_message *m;
     499  owl_fmtext *fm;
     500  char *text, *ptr;
     501  int place;
     502
     503  /* grab the first message and make sure its id is 0 */
     504  ml=owl_global_get_msglist(&g);
     505  m=owl_messagelist_get_element(ml, 0);
     506  if (!m) return;
     507  if (owl_message_get_id(m)!=0) return;
     508
     509  fm=owl_message_get_fmtext(m);
     510  text=owl_fmtext_get_text(fm);
     511
     512  ptr=strstr(text, "OvO");
     513  if (ptr) {
     514    place=ptr-text;
     515    owl_fmtext_set_char(fm, place, '-');
     516    owl_fmtext_set_char(fm, place+2, '-');
     517
     518    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     519    owl_global_set_needrefresh(&g);
     520    return;
     521  }
     522
     523  ptr=strstr(text, "-v-");
     524  if (ptr) {
     525    place=ptr-text;
     526    owl_fmtext_set_char(fm, place, 'O');
     527    owl_fmtext_set_char(fm, place+2, 'O');
     528
     529    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     530    owl_global_set_needrefresh(&g);
     531    return;
     532  }
     533}
    496534
    497535/**************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.