# HG changeset patch # User Eric Polino # Date 1182263543 0 # Node ID 062bb6a591ff9d0a6e6347bb43521dc276536f30 # Parent eb49b371cf9a31a3dee6569712a571e724c60cca# Parent 6ccd66add326790fe02b0890c174f433fe167ab4 merge of 'c80d121e4fd54ef1ba9c1ce9e4afa059f6b777e9' and 'd07595d436b95a0c21e8e5e26ffdf6c37af63915' diff -r eb49b371cf9a -r 062bb6a591ff finch/gntprefs.c --- a/finch/gntprefs.c Tue Jun 19 14:32:08 2007 +0000 +++ b/finch/gntprefs.c Tue Jun 19 14:32:23 2007 +0000 @@ -166,6 +166,25 @@ return field; } +static GList * +get_sound_methods() +{ + GList *list = NULL; + list = g_list_append(list,(char *)_("Console Beep")); + list = g_list_append(list,"beep"); + list = g_list_append(list,(char *)_("Automatic")); + list = g_list_append(list,"automatic"); + list = g_list_append(list,(char *)_("ESD")); + list = g_list_append(list,"esd"); + list = g_list_append(list,(char *)_("ALSA")); + list = g_list_append(list,"alsa"); + list = g_list_append(list,(char *)_("Command")); + list = g_list_append(list,"custome"); + list = g_list_append(list,(char *)_("No Sound")); + list = g_list_append(list,"none"); + return list; +} + static Prefs blist[] = { {PURPLE_PREF_BOOLEAN, "/finch/blist/idletime", N_("Show Idle Time"), NULL}, @@ -199,6 +218,14 @@ {PURPLE_PREF_NONE, NULL, NULL, NULL}, }; +static Prefs sound[] = +{ + {PURPLE_PREF_STRING, FINCH_PREFS_ROOT "/sound/method", "Method", get_sound_methods}, + {PURPLE_PREF_BOOLEAN, FINCH_PREFS_ROOT "/sound/mute", "Mute the Sound", NULL}, + {PURPLE_PREF_NONE, NULL, NULL, NULL}, +}; + + static void free_strings() { @@ -241,6 +268,7 @@ add_pref_group(fields, _("Conversations"), convs); add_pref_group(fields, _("Logging"), logging); add_pref_group(fields, _("Idle"), idle); + add_pref_group(fields, _("Sound"),sound); purple_request_fields(NULL, _("Preferences"), NULL, NULL, fields, _("Save"), G_CALLBACK(save_cb), _("Cancel"), free_strings,