comparison src/proxy.c @ 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 29594d4ccbb1
children ff267281e882
comparison
equal deleted inserted replaced
12810:b0ede7907dd0 12811:ac41924f8bb0
196 196
197 /* See whether to use a proxy. */ 197 /* See whether to use a proxy. */
198 if (!g_spawn_command_line_sync("gconftool-2 -g /system/http_proxy/use_http_proxy", &tmp, 198 if (!g_spawn_command_line_sync("gconftool-2 -g /system/http_proxy/use_http_proxy", &tmp,
199 NULL, NULL, NULL)) 199 NULL, NULL, NULL))
200 return gaim_global_proxy_get_info(); 200 return gaim_global_proxy_get_info();
201 if (strcmp(tmp, "true\n")) { 201 if (!strcmp(tmp, "false\n")) {
202 info.type = GAIM_PROXY_NONE; 202 info.type = GAIM_PROXY_NONE;
203 g_free(tmp);
204 return &info;
205 } else if (strcmp(tmp, "true\n")) {
203 g_free(tmp); 206 g_free(tmp);
204 return gaim_global_proxy_get_info(); 207 return gaim_global_proxy_get_info();
205 } 208 }
206 209
207 g_free(tmp); 210 g_free(tmp);