comparison src/prefs.c @ 4581:4b1e24835bbf

[gaim-migrate @ 4864] put NAS sound support back in, and re-wrote a lot of the libao stuff this should mostly put an end to people having to make a ~/.libao file committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 14 Feb 2003 20:57:32 +0000
parents 9df99116840a
children eddb870a3c4d
comparison
equal deleted inserted replaced
4580:3fef2d45dce0 4581:4b1e24835bbf
984 gaim_button(_("_Sounds while away"), &sound_options, OPT_SOUND_WHEN_AWAY, vbox); 984 gaim_button(_("_Sounds while away"), &sound_options, OPT_SOUND_WHEN_AWAY, vbox);
985 985
986 #ifndef _WIN32 986 #ifndef _WIN32
987 vbox = make_frame (ret, _("Sound Method")); 987 vbox = make_frame (ret, _("Sound Method"));
988 dd = gaim_dropdown(vbox, _("_Method"), &sound_options, OPT_SOUND_BEEP | 988 dd = gaim_dropdown(vbox, _("_Method"), &sound_options, OPT_SOUND_BEEP |
989 OPT_SOUND_NORMAL | 989 OPT_SOUND_ESD | OPT_SOUND_ARTS | OPT_SOUND_NAS |
990 OPT_SOUND_CMD, 990 OPT_SOUND_NORMAL | OPT_SOUND_CMD,
991 _("Console beep"), OPT_SOUND_BEEP, 991 _("Console beep"), OPT_SOUND_BEEP,
992 #ifdef USE_AO 992 #ifdef USE_AO
993 _("Automatic"), OPT_SOUND_NORMAL, 993 _("Automatic"), OPT_SOUND_NORMAL,
994 "ESD", OPT_SOUND_ESD,
995 "Arts", OPT_SOUND_ARTS,
996 #endif
997 #ifdef USE_NAS_AUDIO
998 "NAS", OPT_SOUND_NAS,
994 #endif 999 #endif
995 _("Command"), OPT_SOUND_CMD, NULL); 1000 _("Command"), OPT_SOUND_CMD, NULL);
996 gtk_size_group_add_widget(sg, dd); 1001 gtk_size_group_add_widget(sg, dd);
997 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0); 1002 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0);
998 1003
2298 } else if (option == (int*)&sound_options) { 2303 } else if (option == (int*)&sound_options) {
2299 if (opt == OPT_SOUND_CMD) 2304 if (opt == OPT_SOUND_CMD)
2300 gtk_widget_set_sensitive(sndcmd, TRUE); 2305 gtk_widget_set_sensitive(sndcmd, TRUE);
2301 else 2306 else
2302 gtk_widget_set_sensitive(sndcmd, FALSE); 2307 gtk_widget_set_sensitive(sndcmd, FALSE);
2308 gaim_sound_change_output_method();
2303 } else if (option == (int*)&im_options) { 2309 } else if (option == (int*)&im_options) {
2304 if (clear == (OPT_IM_SIDE_TAB | OPT_IM_BR_TAB)) 2310 if (clear == (OPT_IM_SIDE_TAB | OPT_IM_BR_TAB))
2305 gaim_gtkconv_update_tabs(); 2311 gaim_gtkconv_update_tabs();
2306 else if (clear == (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM)) 2312 else if (clear == (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM))
2307 gaim_gtkconv_update_im_button_style(); 2313 gaim_gtkconv_update_im_button_style();