Mercurial > pidgin
annotate src/sound.c @ 9969:cc2e6dd43613
[gaim-migrate @ 10879]
(21:35:19) nosnilmot: LSchiere: gaim_blist_add_group() should not really be
#if 0'd out... does that need a patch?
(21:35:38) LSchiere: why is it #if 0'ed?
(21:35:50) nosnilmot: merging error afaict
(21:35:52) interalia: datallah: talking to yourself is OK. it's when you
answer that it becomes a problem...
(21:35:54) LSchiere: i'm assuming it was done for a reason, temporary as
that reason might be
(21:36:04) nosnilmot: it's not #if 0'd in chip's svn tree
(21:36:08) LSchiere: oddness
(21:36:16) interalia: cvs annotate to the rescue!
(21:36:23) LSchiere: was that part of datallah's patch failure handle
patch?
(21:36:49) datallah: yeah... i'm confused as to how it happened, but the
first part happened during the plain merge and the #endif i added during
the .rej cleanup iirc
(21:37:31) nosnilmot: yup, datallah's right :) I suspect the #if 0 came in
because "patch" was trying to "help"
(21:37:47) LSchiere: okay, let's see what happens without that
(21:38:11) nosnilmot: "it works a lot better and doesn't eat as many buddy
lists for breakfast"
(21:38:12) datallah: it definitely needs to not be commented out
it compiles uncommented, so we'll go with their opinion
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Wed, 08 Sep 2004 01:38:38 +0000 |
| parents | e4a27c9aec4c |
| children | bdec08a8fc5b |
| rev | line source |
|---|---|
| 1 | 1 /* |
| 2 * gaim | |
| 3 * | |
| 8046 | 4 * Gaim is the legal property of its developers, whose names are too numerous |
| 5 * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 6 * source distribution. | |
| 1 | 7 * |
| 8 * This program is free software; you can redistribute it and/or modify | |
| 9 * it under the terms of the GNU General Public License as published by | |
| 10 * the Free Software Foundation; either version 2 of the License, or | |
| 11 * (at your option) any later version. | |
| 12 * | |
| 13 * This program is distributed in the hope that it will be useful, | |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 * GNU General Public License for more details. | |
| 17 * | |
| 18 * You should have received a copy of the GNU General Public License | |
| 19 * along with this program; if not, write to the Free Software | |
| 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 * | |
| 22 */ | |
|
5872
059d95c67cda
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
23 #include "internal.h" |
| 3630 | 24 |
| 4561 | 25 #include "sound.h" |
|
5545
7a64114641c3
[gaim-migrate @ 5946]
Christian Hammond <chipx86@chipx86.com>
parents:
5436
diff
changeset
|
26 #include "prefs.h" |
| 1 | 27 |
|
6371
8f94cce8faa5
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
28 /* XXX CORE/UI: this goes away when away messages become sane */ |
| 9730 | 29 #include "away.h" |
|
5872
059d95c67cda
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
30 |
|
4019
e53d9f9969d0
[gaim-migrate @ 4219]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4014
diff
changeset
|
31 |
| 5684 | 32 static GaimSoundUiOps *sound_ui_ops = NULL; |
| 3319 | 33 |
|
7035
feb3d21a7794
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6371
diff
changeset
|
34 void gaim_sound_set_ui_ops(GaimSoundUiOps *ops) |
| 4430 | 35 { |
| 5684 | 36 if(sound_ui_ops && sound_ui_ops->shutdown) |
| 37 sound_ui_ops->shutdown(); | |
| 38 sound_ui_ops = ops; | |
| 39 if(sound_ui_ops && sound_ui_ops->init) | |
| 40 sound_ui_ops->init(); | |
| 4430 | 41 } |
| 42 | |
|
7035
feb3d21a7794
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6371
diff
changeset
|
43 GaimSoundUiOps *gaim_sound_get_ui_ops(void) |
| 4430 | 44 { |
| 5684 | 45 return sound_ui_ops; |
| 4581 | 46 } |
| 47 | |
| 5684 | 48 void gaim_sound_init() |
| 49 { | |
| 50 gaim_prefs_add_none("/core/sound"); | |
| 51 gaim_prefs_add_bool("/core/sound/while_away", FALSE); | |
| 52 } | |
| 4581 | 53 |
| 5684 | 54 void gaim_sound_shutdown() |
| 4430 | 55 { |
| 5684 | 56 if(sound_ui_ops && sound_ui_ops->shutdown) |
| 57 sound_ui_ops->shutdown(); | |
| 58 } | |
| 4430 | 59 |
| 5684 | 60 void gaim_sound_play_file(const char *filename) |
| 61 { | |
| 9944 | 62 /* FIXME */ |
| 63 #if 0 | |
| 5684 | 64 if(awaymessage && !gaim_prefs_get_bool("/core/sound/while_away")) |
| 4561 | 65 return; |
| 9944 | 66 #endif |
| 4430 | 67 |
| 5684 | 68 if(sound_ui_ops && sound_ui_ops->play_file) |
| 69 sound_ui_ops->play_file(filename); | |
|
1006
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
899
diff
changeset
|
70 } |
|
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
899
diff
changeset
|
71 |
| 4561 | 72 void gaim_sound_play_event(GaimSoundEventID event) |
| 1 | 73 { |
| 9944 | 74 /* FIXME */ |
| 75 #if 0 | |
| 5684 | 76 if(awaymessage && !gaim_prefs_get_bool("/core/sound/while_away")) |
| 4561 | 77 return; |
| 9944 | 78 #endif |
| 4561 | 79 |
| 5684 | 80 if(sound_ui_ops && sound_ui_ops->play_event) |
| 81 sound_ui_ops->play_event(event); | |
| 4561 | 82 } |
