Changeset 4b660cc for util.c


Ignore:
Timestamp:
Dec 23, 2003, 4:13:43 PM (18 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:
8b16467
Parents:
c65d81e
Message:
Now have a set of 'aaway' commands and variables just like the
  'zaway' ones (except that changing the 'aaway' variable talks to
  the server)
The new 'away' command does everything for both AIM *and* zephyr.
  There is a known funkiness here, where if you turn one away on,
  and then use 'away' (or 'A') to toggle, you will turn on off and
  the other on.  Just leaving it for now.  Should do better in the
  next patch.
The 'A' key is bound to 'away'
Status bar can now read AWAY, Z-AWAY or A-AWAY.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    rc65d81e r4b660cc  
    7878  }
    7979
    80   if (owl_global_is_zaway(&g)) {
     80  if (owl_global_is_zaway(&g) || owl_global_is_aaway(&g)) {
    8181    getyx(sepwin, y, x);
    8282    wmove(sepwin, y, x+2);
    8383    wattron(sepwin, A_BOLD);
    8484    wattroff(sepwin, A_REVERSE);
    85     waddstr(sepwin, " AWAY ");
     85    if (owl_global_is_zaway(&g) && owl_global_is_aaway(&g)) {
     86      waddstr(sepwin, " AWAY ");
     87    } else if (owl_global_is_zaway(&g)) {
     88      waddstr(sepwin, " Z-AWAY ");
     89    } else if (owl_global_is_aaway(&g)) {
     90      waddstr(sepwin, " A-AWAY ");
     91    }
    8692    wattron(sepwin, A_REVERSE);
    8793    wattroff(sepwin, A_BOLD);
Note: See TracChangeset for help on using the changeset viewer.