[Pidgin] #780: Sound event for new email

Pidgin trac at pidgin.im
Sun Dec 23 20:50:57 EST 2007


#780: Sound event for new email
----------------------------+-----------------------------------------------
  Reporter:  chrisjames_71  |       Owner:     
      Type:  enhancement    |      Status:  new
  Priority:  minor          |   Milestone:     
 Component:  pidgin (gtk)   |     Version:  2.0
Resolution:                 |    Keywords:     
   Pending:  0              |  
----------------------------+-----------------------------------------------
Comment (by ebx):

 I can't explain it, but it works now.

 I changed the patch for gtknotify.c from

 purple_sound_play_event(PURPLE_SOUND_FIRST_RECEIVE, account); // play
 sound

 to

 purple_sound_play_event(PURPLE_SOUND_RECEIVE, NULL); // play sound

 (meaning message is received event and NULL meaning for all accounts)

 However, when I first made this change it did nothing. It was only after I
 put the machine into hibernation and then brought it back up that it began
 to work. I had to set message received as being checked. The problem with
 this is that now I have to have that item checked at all times.

 It would be best to add a custom event that is only for mail is received,
 as I don't want to hear a noise every time I get an im or even when an im
 begins conversation, just when mail arrives.

 The compromise for me is to use the "someone says your name in chat" event
 as it is not likely to occur. That may not be the case for others. This is
 the change:

         purple_sound_play_event(PURPLE_SOUND_CHAT_NICK, NULL); // play
 sound

-- 
Ticket URL: <http://developer.pidgin.im/ticket/780#comment:8>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list