Mercurial > pidgin.yaz
diff src/aim.c @ 109:45bcfa3b584c
[gaim-migrate @ 119]
Added an option to not play 'login' sounds when people first sign on.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 12 Apr 2000 21:30:29 +0000 |
parents | 55faf2e3a134 |
children | e277d5f0c1dd |
line wrap: on
line diff
--- a/src/aim.c Wed Apr 12 08:28:52 2000 +0000 +++ b/src/aim.c Wed Apr 12 21:30:29 2000 +0000 @@ -109,6 +109,12 @@ gtk_main_iteration(); } +static int snd_tmout; +static void sound_timeout() { + sound_options += OPT_SOUND_LOGIN; + gtk_timeout_remove(snd_tmout); +} + void dologin(GtkWidget *widget, GtkWidget *w) { static gboolean running = FALSE; @@ -140,6 +146,13 @@ return; } + if (sound_options & OPT_SOUND_LOGIN && + sound_options & OPT_SOUND_SILENT_SIGNON) { + sound_options -= OPT_SOUND_LOGIN; + snd_tmout = gtk_timeout_add(10000, (GtkFunction)sound_timeout, + NULL); + } + #ifdef USE_APPLET applet_widget_unregister_callback(APPLET_WIDGET(applet),"signon"); applet_widget_register_callback(APPLET_WIDGET(applet),