Mercurial > pidgin
diff src/gtkconv.c @ 9846:c28d5b45624e
[gaim-migrate @ 10724]
A patch from Nathan Fredrickson that should make Gaim not play
sounds for people joining chats when you join chat.
Um, his explanation is better:
http://sourceforge.net/tracker/index.php?func=detail&aid=1008904&group_id=235&atid=300235
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 24 Aug 2004 04:12:28 +0000 |
| parents | 7c459857f1c2 |
| children | 0e3a84f18467 |
line wrap: on
line diff
--- a/src/gtkconv.c Tue Aug 24 01:26:54 2004 +0000 +++ b/src/gtkconv.c Tue Aug 24 04:12:28 2004 +0000 @@ -5184,7 +5184,7 @@ } static void -gaim_gtkconv_chat_add_user(GaimConversation *conv, const char *user) +gaim_gtkconv_chat_add_user(GaimConversation *conv, const char *user, gboolean new_arrival) { GaimConvChat *chat; GaimGtkConversation *gtkconv; @@ -5205,7 +5205,7 @@ gtk_label_set_text(GTK_LABEL(gtkchat->count), tmp); - if (gtkconv->make_sound) + if (gtkconv->make_sound && new_arrival) gaim_sound_play_event(GAIM_SOUND_CHAT_JOIN); add_chat_buddy_common(conv, user);
