summaryrefslogtreecommitdiff
path: root/src/trg-peers-model.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-13 13:21:48 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-13 13:21:48 +0000
commit009ef4d4a37ca136c6bd1071fc980c4f164badd9 (patch)
treea5eaacc4ece039a3b9db8740a18c9397a0402759 /src/trg-peers-model.c
parent0cf859ff090d670eef1a7f184ad974db6a953ccc (diff)
move functionality, refresh static function prototypes in main-window, add/remove status icon without restart
Diffstat (limited to 'src/trg-peers-model.c')
-rw-r--r--src/trg-peers-model.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/trg-peers-model.c b/src/trg-peers-model.c
index a814123..26ac636 100644
--- a/src/trg-peers-model.c
+++ b/src/trg-peers-model.c
@@ -17,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -26,7 +26,7 @@
#include <json-glib/json-glib.h>
#include <gio/gio.h>
#include <glib/gstdio.h>
-#if HAVE_GEOIP
+#ifdef HAVE_GEOIP
#include <GeoIP.h>
#endif
@@ -159,7 +159,7 @@ void trg_peers_model_update(TrgPeersModel * model, gint64 updateSerial,
gtk_list_store_set(GTK_LIST_STORE(model), &peerIter,
PEERSCOL_ICON, GTK_STOCK_NETWORK,
PEERSCOL_IP, address,
-#if HAVE_GEOIP
+#ifdef HAVE_GEOIP
PEERSCOL_COUNTRY,
country != NULL ? country : "",
#endif
@@ -220,7 +220,7 @@ static void trg_peers_model_init(TrgPeersModel * self)
column_types[PEERSCOL_ICON] = G_TYPE_STRING;
column_types[PEERSCOL_IP] = G_TYPE_STRING;
-#if HAVE_GEOIP
+#ifdef HAVE_GEOIP
column_types[PEERSCOL_COUNTRY] = G_TYPE_STRING;
#endif
column_types[PEERSCOL_HOST] = G_TYPE_STRING;
@@ -234,7 +234,7 @@ static void trg_peers_model_init(TrgPeersModel * self)
gtk_list_store_set_column_types(GTK_LIST_STORE(self),
PEERSCOL_COLUMNS, column_types);
-#if HAVE_GEOIP
+#ifdef HAVE_GEOIP
if (g_file_test(TRG_GEOIP_DATABASE, G_FILE_TEST_EXISTS) == TRUE)
priv->geoip =
GeoIP_open(TRG_GEOIP_DATABASE,