Mercurial > pidgin.yaz
comparison src/main.c @ 8947:fa6c2d893c51
[gaim-migrate @ 9719]
Eradicate the "Sounds when you log in" preference, default to no sounds
when you log in
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 May 2004 06:12:03 +0000 |
parents | 438e8d857554 |
children | 98f01c233a40 |
comparison
equal
deleted
inserted
replaced
8946:80944edf8d80 | 8947:fa6c2d893c51 |
---|---|
120 /* we need to do this for Oscar because serv_login only starts the login | 120 /* we need to do this for Oscar because serv_login only starts the login |
121 * process, it doesn't end there. gaim_setup will be called later from | 121 * process, it doesn't end there. gaim_setup will be called later from |
122 * oscar.c, after the buddy list is made and serv_finish_login is called */ | 122 * oscar.c, after the buddy list is made and serv_finish_login is called */ |
123 void gaim_setup(GaimConnection *gc) | 123 void gaim_setup(GaimConnection *gc) |
124 { | 124 { |
125 if (gaim_prefs_get_bool("/gaim/gtk/sound/enabled/login") | 125 if (gaim_prefs_get_bool("/gaim/gtk/sound/enabled/login")) { |
126 && !gaim_prefs_get_bool("/gaim/gtk/sound/signon")) { | 126 if (snd_tmout) |
127 if(snd_tmout) { | |
128 g_source_remove(snd_tmout); | 127 g_source_remove(snd_tmout); |
129 } | |
130 gaim_gtk_sound_set_login_mute(TRUE); | 128 gaim_gtk_sound_set_login_mute(TRUE); |
131 snd_tmout = gaim_timeout_add(10000, sound_timeout, NULL); | 129 snd_tmout = gaim_timeout_add(10000, sound_timeout, NULL); |
132 } | 130 } |
133 } | 131 } |
134 | 132 |