aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/export_object.c
diff options
context:
space:
mode:
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) */