Mercurial > pidgin
comparison plugins/mailchk.c @ 11642:58bc500cf226
[gaim-migrate @ 13919]
sf patch #1324285, from Casey Harkins
fix "sounds while away" in HEAD
This patch adds a GaimAccount as a parameter to the
sound playing functions, allowing the caller to specify
the account the sound is related to. If the account is
not NULL and the while_away preference is not set, then
the account is checked to see if it is away, if so, the
sound is not played.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 12 Oct 2005 02:27:32 +0000 |
parents | bb0d7b719af2 |
children |
comparison
equal
deleted
inserted
replaced
11641:925c1960af34 | 11642:58bc500cf226 |
---|---|
73 g_signal_connect(G_OBJECT(mail), "destroy", G_CALLBACK(destroy_cb), NULL); | 73 g_signal_connect(G_OBJECT(mail), "destroy", G_CALLBACK(destroy_cb), NULL); |
74 gtk_widget_show(mail); | 74 gtk_widget_show(mail); |
75 } | 75 } |
76 | 76 |
77 if (count & NEW_MAIL) | 77 if (count & NEW_MAIL) |
78 gaim_sound_play_event(GAIM_SOUND_POUNCE_DEFAULT); | 78 gaim_sound_play_event(GAIM_SOUND_POUNCE_DEFAULT, NULL); |
79 | 79 |
80 if (count & UNREAD_MAIL) | 80 if (count & UNREAD_MAIL) |
81 gtk_label_set_text(GTK_LABEL(mail), "You have new mail!"); | 81 gtk_label_set_text(GTK_LABEL(mail), "You have new mail!"); |
82 else if (count & ANY_MAIL) | 82 else if (count & ANY_MAIL) |
83 gtk_label_set_text(GTK_LABEL(mail), "You have mail."); | 83 gtk_label_set_text(GTK_LABEL(mail), "You have mail."); |