Mercurial > pidgin.yaz
annotate src/sound.c @ 11619:de413ae71cba
[gaim-migrate @ 13893]
This makes left and right tabs behave more like what we discussed.
Then I went mad and added two new tab placement options. We may
decide they completely suck and remove them, but they're kind of neat
so I thought i'd at least try.
I Broke some of the instant apply stuff. You WILL have to drag the tabs
into a new window to see them fully correctly. Basicly some stuff
will instant apply and some what. I need to fix this. Or you can
submit a patch :)
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 06 Oct 2005 02:13:39 +0000 |
parents | 8d0ac3c37831 |
children | 58bc500cf226 |
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 |
10322 | 25 #include "blist.h" |
26 #include "prefs.h" | |
4561 | 27 #include "sound.h" |
1 | 28 |
5684 | 29 static GaimSoundUiOps *sound_ui_ops = NULL; |
3319 | 30 |
10322 | 31 void |
32 gaim_sound_play_file(const char *filename) | |
5684 | 33 { |
9944 | 34 /* FIXME */ |
35 #if 0 | |
5684 | 36 if(awaymessage && !gaim_prefs_get_bool("/core/sound/while_away")) |
4561 | 37 return; |
9944 | 38 #endif |
4430 | 39 |
5684 | 40 if(sound_ui_ops && sound_ui_ops->play_file) |
41 sound_ui_ops->play_file(filename); | |
1006
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
899
diff
changeset
|
42 } |
0a4d0ed65e17
[gaim-migrate @ 1016]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
899
diff
changeset
|
43 |
10322 | 44 void |
45 gaim_sound_play_event(GaimSoundEventID event) | |
1 | 46 { |
9944 | 47 /* FIXME */ |
48 #if 0 | |
5684 | 49 if(awaymessage && !gaim_prefs_get_bool("/core/sound/while_away")) |
4561 | 50 return; |
9944 | 51 #endif |
4561 | 52 |
5684 | 53 if(sound_ui_ops && sound_ui_ops->play_event) |
54 sound_ui_ops->play_event(event); | |
4561 | 55 } |
10322 | 56 |
57 void | |
58 gaim_sound_set_ui_ops(GaimSoundUiOps *ops) | |
59 { | |
60 if(sound_ui_ops && sound_ui_ops->uninit) | |
61 sound_ui_ops->uninit(); | |
62 | |
63 sound_ui_ops = ops; | |
64 | |
65 if(sound_ui_ops && sound_ui_ops->init) | |
66 sound_ui_ops->init(); | |
67 } | |
68 | |
69 GaimSoundUiOps * | |
70 gaim_sound_get_ui_ops(void) | |
71 { | |
72 return sound_ui_ops; | |
73 } | |
74 | |
75 void | |
76 gaim_sound_init() | |
77 { | |
78 gaim_prefs_add_none("/core/sound"); | |
79 gaim_prefs_add_bool("/core/sound/while_away", FALSE); | |
80 | |
81 } | |
82 | |
83 void | |
84 gaim_sound_uninit() | |
85 { | |
86 if(sound_ui_ops && sound_ui_ops->uninit) | |
87 sound_ui_ops->uninit(); | |
88 } |