aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/export_object.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-08-04 17:52:38 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-08-04 17:52:38 +0000
commit2e398bcb6e574cde505d1bfd526c7f806cabdb27 (patch)
treec614e9506f80e898f1b9f976348983d008e886d5 /gtk/export_object.c
parentf7cdc0be3128423c81e6f53b2b195fbfc571ed27 (diff)
Change the export object/export object http code to only be included
in the code for GTK versions 2.4 and up instead of 2 and up. svn path=/trunk/; revision=22455
Diffstat (limited to 'gtk/export_object.c')
-rw-r--r--gtk/export_object.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/export_object.c b/gtk/export_object.c
index 0168f49866..e96c6a9956 100644
--- a/gtk/export_object.c
+++ b/gtk/export_object.c
@@ -31,8 +31,9 @@
#include <glib.h>
#include <gtk/gtk.h>
-/* This feature has not been ported to GTK1 */
-#if GTK_MAJOR_VERSION >= 2
+/* This feature has not been ported to GTK1 and uses some functions only
+ * only available in GTK 2.4 and above. */
+#if GTK_CHECK_VERSION(2,4,0)
#include <alert_box.h>
#include <simple_dialog.h>
@@ -424,4 +425,4 @@ export_object_window(const gchar *tapname, const gchar *name, tap_packet_cb tap_
cf_retap_packets(&cfile, FALSE);
}
-#endif /* GTK_MAJOR_VERSION >= 2 */
+#endif /* GTK_CHECK_VERSION(2,4,0) */