changeset 12811:ac41924f8bb0

[gaim-migrate @ 15159] Better obey the GNOME proxy settings. If GNOME proxy configuration is set to "Direct internet connection", set to GAIM_PROXY_NONE instead of using whatever happens to be in prefs.xml. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 10 Jan 2006 23:49:51 +0000
parents b0ede7907dd0
children 7e6de7079eeb
files src/proxy.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Tue Jan 10 20:39:47 2006 +0000
+++ b/src/proxy.c	Tue Jan 10 23:49:51 2006 +0000
@@ -198,9 +198,12 @@
 		if (!g_spawn_command_line_sync("gconftool-2 -g /system/http_proxy/use_http_proxy", &tmp,
 					       NULL, NULL, NULL))
 			return gaim_global_proxy_get_info();
-		if (strcmp(tmp, "true\n")) {
+		if (!strcmp(tmp, "false\n")) {
 			info.type = GAIM_PROXY_NONE;
 			g_free(tmp);
+			return &info;
+		} else if (strcmp(tmp, "true\n")) {
+			g_free(tmp);
 			return gaim_global_proxy_get_info();
 		}