changeset 19106:062bb6a591ff

merge of 'c80d121e4fd54ef1ba9c1ce9e4afa059f6b777e9' and 'd07595d436b95a0c21e8e5e26ffdf6c37af63915'
author Eric Polino <aluink@pidgin.im>
date Tue, 19 Jun 2007 14:32:23 +0000
parents eb49b371cf9a (current diff) 6ccd66add326 (diff)
children c5bfa35c1cdd
files
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,