[frogr] Fake functions in FrogrConfig when not using libgnome.



commit 031f9e379ff933a46812512465e652006d8e5d3d
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Fri May 27 19:38:58 2011 +0200

    Fake functions in FrogrConfig when not using libgnome.
    
    So set/get_use_gnome_proxy() always set/return FALSE.

 src/frogr-config.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-config.c b/src/frogr-config.c
index d6acc4f..2ec1ea0 100644
--- a/src/frogr-config.c
+++ b/src/frogr-config.c
@@ -1321,7 +1321,13 @@ frogr_config_set_use_gnome_proxy (FrogrConfig *self, gboolean value)
   g_return_if_fail (FROGR_IS_CONFIG (self));
 
   priv = FROGR_CONFIG_GET_PRIVATE (self);
+
+#ifdef HAVE_LIBSOUP_GNOME
   priv->use_gnome_proxy = value;
+#else
+  /* Always set it to false if not using libsoup */
+  priv->use_gnome_proxy = FALSE;
+#endif
 }
 
 gboolean
@@ -1331,6 +1337,11 @@ frogr_config_get_use_gnome_proxy (FrogrConfig *self)
 
   g_return_val_if_fail (FROGR_IS_CONFIG (self), FALSE);
 
+#ifndef HAVE_LIBSOUP_GNOME
+  /* Always return false if not using libsoup */
+  return FALSE;
+#endif
+
   priv = FROGR_CONFIG_GET_PRIVATE (self);
   return priv->use_gnome_proxy;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]