aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-10-27 20:35:52 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-10-27 20:35:52 +0000
commit2ec94c8f7c0003ed31c282912397bcb93d2da879 (patch)
tree31c7471bf8fc3ee76d8ab5caa7f341fef53626eb /gtk
parentb01d3d77dc3bf2afe339ef493c1c7beca570b651 (diff)
Show configured GeoIP paths in About->Folders
svn path=/trunk/; revision=26587
Diffstat (limited to 'gtk')
-rw-r--r--gtk/about_dlg.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/gtk/about_dlg.c b/gtk/about_dlg.c
index 858f69e37a..25c7651308 100644
--- a/gtk/about_dlg.c
+++ b/gtk/about_dlg.c
@@ -35,6 +35,9 @@
#ifdef HAVE_LIBSMI
#include <epan/oids.h>
#endif
+#ifdef HAVE_GEOIP
+#include <epan/geoip.h>
+#endif
#include "../globals.h"
#include "../log.h"
@@ -362,7 +365,7 @@ about_folders_page_new(void)
char *path;
const gchar *titles[] = { "Name", "Folder", "Typical Files"};
GtkWidget *scrolledwindow;
-#ifdef HAVE_LIBSMI
+#if defined (HAVE_LIBSMI) || defined (HAVE_GEOIP)
gint i;
gchar **resultArray;
#endif
@@ -425,6 +428,23 @@ about_folders_page_new(void)
"dissector plugins");
#endif
+#ifdef HAVE_GEOIP
+ /* GeoIP */
+ path = geoip_get_paths();
+
+#ifdef _WIN32
+ resultArray = g_strsplit(path, ";", 10);
+#else
+ resultArray = g_strsplit(path, ":", 10);
+#endif
+
+ for(i = 0; resultArray[i]; i++)
+ about_folders_row(table, "GeoIP path", g_strstrip(resultArray[i]),
+ "GeoIP database search path");
+ g_strfreev(resultArray);
+ g_free((void *) path);
+#endif
+
#ifdef HAVE_LIBSMI
/* SMI MIBs/PIBs */
path = oid_get_default_mib_path();