Mercurial > pidgin
annotate plugins/perl/common/module.h @ 9550:de83d2cb87a4
[gaim-migrate @ 10379]
" When unqueuing messages and "sounds while away" is set,
Gaim will play a message receieved for every message
unqueued. If there are a large number of messages, my
SB Audigy tries playing them all and ends up creating a
crackly ugly sound. Friends of mine have complained
about this as well.
This patch fixes that by making sure sounds are
disabled when unqueuing messages. Sounds will be
re-enabled afterwards if necessary.
Something to note is that playing the sounds when
unqueuing messages crashes Gaim on occasion, with about
50% success. After applying this patch, the crashes
stopped. The backtrace isn't particularly
helpful...it's all question marks and valgrind doesn't
say much either. Crash or no crash though, this
eliminates annoying behavior so that is probably more
important.
I originally fixed this for my plugin AutoProfile, but
since they use similar code for queuing messages, it
would be nice if Gaim has it as well :)" --Casey Ho
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Fri, 16 Jul 2004 14:56:47 +0000 |
| parents | bf630f7dfdcd |
| children | 134d0001983d |
| rev | line source |
|---|---|
| 6508 | 1 typedef struct group *Gaim__Group; |
| 2 | |
| 3 #define group perl_group | |
| 4 | |
|
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
5 #include <glib.h> |
|
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
6 #ifdef _WIN32 |
|
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
7 #undef pipe |
|
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
8 #endif |
| 6508 | 9 #include <EXTERN.h> |
| 10 #include <perl.h> | |
| 11 #include <XSUB.h> | |
| 12 | |
| 13 #undef group | |
| 14 | |
| 15 #include "../perl-common.h" | |
| 16 | |
| 17 #include "account.h" | |
| 18 #include "connection.h" | |
|
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
19 #include "conversation.h" |
| 6508 | 20 #include "debug.h" |
|
6523
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
21 #include "server.h" |
| 6508 | 22 |
|
6531
7c42b8ca3222
[gaim-migrate @ 7048]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
23 typedef GaimAccount * Gaim__Account; |
|
6699
12169973c663
[gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
24 typedef GaimBuddy * Gaim__BuddyList__Buddy; |
|
7118
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
25 typedef GaimChat * Gaim__BuddyList__Chat; |
|
6699
12169973c663
[gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
26 typedef GaimGroup * Gaim__BuddyList__Group; |
|
12169973c663
[gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
27 typedef GaimContact * Gaim__BuddyList__Contact; |
|
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
28 typedef GaimConnection * Gaim__Connection; |
|
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
29 typedef GaimConversation *Gaim__Conversation; |
|
7118
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
30 typedef GaimConvChat * Gaim__Conversation__Chat; |
|
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
31 typedef GaimConvIm * Gaim__Conversation__IM; |
|
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
32 typedef GaimConvWindow * Gaim__ConvWindow; |
|
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
33 typedef GaimPlugin * Gaim__Plugin; |
|
6588
7f5f57dd5cac
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
34 |
|
7f5f57dd5cac
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
35 typedef GaimDebugLevel Gaim__DebugLevel; |
