changeset 31524:25bbabd11c91

vvconfig: Stop resetting device selections to defaults. Fixes #13044. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author jakub.adam@ktknet.cz
date Tue, 28 Dec 2010 11:09:22 +0000
parents a202f4dcbb96
children 37c9f6020c35
files ChangeLog pidgin/plugins/vvconfig.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 28 11:03:37 2010 +0000
+++ b/ChangeLog	Tue Dec 28 11:09:22 2010 +0000
@@ -2,12 +2,16 @@
 
 version 2.7.10 (??/??/????):
 	libpurple:
-	* Stop sending audio when placing a call on hold (Jakub Adam) (#13032)
+	* Stop sending audio when placing a call on hold. (Jakub Adam) (#13032)
 
 	Pidgin:
 	* Support using the Page Up and Page Down keys on the numeric keypad in
 	  the conversation window.  (Ryan Flegel) (#13127)
 
+	Plugins:
+	* The Voice/Video Settings plugin no longer resets selected devices to
+	  defaults. (Jakub Adam) (#13044)
+
 version 2.7.9 (12/26/2010):
 	MSN:
 	* Fix a crash when receiving short packets related to P2Pv2. (CVE ID
--- a/pidgin/plugins/vvconfig.c	Tue Dec 28 11:03:37 2010 +0000
+++ b/pidgin/plugins/vvconfig.c	Tue Dec 28 11:09:22 2010 +0000
@@ -273,7 +273,8 @@
 
 	/* Setup device preference */
 	devices = get_element_devices(purple_prefs_get_string(plugin_pref));
-	if (g_list_find(devices, purple_prefs_get_string(device_pref)) == NULL)
+	if (g_list_find_custom(devices, purple_prefs_get_string(device_pref),
+			(GCompareFunc) strcmp) == NULL)
 		purple_prefs_set_string(device_pref, g_list_next(devices)->data);
 	widget = pidgin_prefs_dropdown_from_list(vbox, device_label,
 			PURPLE_PREF_STRING, device_pref, devices);