# HG changeset patch # User Christian Hammond # Date 1060754703 0 # Node ID 601c2a52d74a29c040c436c24ed82dabd0de4801 # Parent 9e87b873df721e9b61cdba0ddb7f82474dfcbc69 [gaim-migrate @ 6953] Some buddy pounce fixes from Kevin Stange. He says, "GAIM_TYPED = typing stopped event, GAIM_TYPING = typing started event (before it was GAIM_TYPED & GAIM_TYPING both were typing started). this also makes pounce sounds work (pounce file string error) and the start-typing event is now maintained when the pounce file is read on startup. that last one was another mistake with a string value in the pounces.xml file" committer: Tailor Script diff -r 9e87b873df72 -r 601c2a52d74a src/gtkpounce.c --- a/src/gtkpounce.c Tue Aug 12 23:32:00 2003 +0000 +++ b/src/gtkpounce.c Wed Aug 13 06:05:03 2003 +0000 @@ -895,7 +895,7 @@ const char *sound; sound = gaim_pounce_action_get_attribute(pounce, "play-sound", - "sound"); + "filename"); if (sound != NULL) gaim_sound_play_file(sound); diff -r 9e87b873df72 -r 601c2a52d74a src/pounce.c --- a/src/pounce.c Tue Aug 12 23:32:00 2003 +0000 +++ b/src/pounce.c Wed Aug 13 06:05:03 2003 +0000 @@ -545,7 +545,7 @@ data->events |= GAIM_POUNCE_IDLE; else if (!strcmp(data->event_type, "return-from-idle")) data->events |= GAIM_POUNCE_IDLE_RETURN; - else if (!strcmp(data->event_type, "typing")) + else if (!strcmp(data->event_type, "start-typing")) data->events |= GAIM_POUNCE_TYPING; else if (!strcmp(data->event_type, "stop-typing")) data->events |= GAIM_POUNCE_TYPING_STOPPED; diff -r 9e87b873df72 -r 601c2a52d74a src/server.c --- a/src/server.c Tue Aug 12 23:32:00 2003 +0000 +++ b/src/server.c Wed Aug 13 06:05:03 2003 +0000 @@ -1193,7 +1193,12 @@ gaim_event_broadcast(event_got_typing, gc, name); if (b != NULL) - gaim_pounce_execute(gc->account, name, GAIM_POUNCE_TYPING); + if (state == GAIM_TYPING) + gaim_pounce_execute(gc->account, name, + GAIM_POUNCE_TYPING); + else + gaim_pounce_execute(gc->account, name, + GAIM_POUNCE_TYPING_STOPPED); if (timeout > 0) gaim_im_start_typing_timeout(im, timeout);