Changeset 4b660cc for functions.c


Ignore:
Timestamp:
Dec 23, 2003, 4:13:43 PM (17 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
  • functions.c

    r9854278 r4b660cc  
    863863{
    864864  owl_global_set_zaway_on(&g);
    865   owl_aim_set_awaymsg(owl_global_get_zaway_msg(&g));
    866   owl_function_makemsg("aim and zaway set (%s)", owl_global_get_zaway_msg(&g));
     865  owl_function_makemsg("zaway set (%s)", owl_global_get_zaway_msg(&g));
    867866}
    868867
     
    870869{
    871870  owl_global_set_zaway_off(&g);
    872   owl_aim_set_awaymsg("");
    873   owl_function_makemsg("aim and zaway off");
     871  owl_function_makemsg("zaway off");
     872}
     873
     874void owl_function_aaway_toggle()
     875{
     876  if (!owl_global_is_aaway(&g)) {
     877    owl_global_set_aaway_msg(&g, owl_global_get_aaway_msg_default(&g));
     878    owl_function_aaway_on();
     879  } else {
     880    owl_function_aaway_off();
     881  }
     882}
     883
     884void owl_function_aaway_on()
     885{
     886  owl_global_set_aaway_on(&g);
     887  /* owl_aim_set_awaymsg(owl_global_get_zaway_msg(&g)); */
     888  owl_function_makemsg("AIM away set (%s)", owl_global_get_aaway_msg(&g));
     889}
     890
     891void owl_function_aaway_off()
     892{
     893  owl_global_set_aaway_off(&g);
     894  /* owl_aim_set_awaymsg(""); */
     895  owl_function_makemsg("AIM away off");
    874896}
    875897
Note: See TracChangeset for help on using the changeset viewer.