aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-07 10:22:41 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-07 10:22:41 +0000
commitfb037b7cde4ba2759877ea302750f5e74fab7a17 (patch)
tree452dbb7ba179226fab8b768264d352e9278df4a6
parent8f55e39d4956931231c6f149092e408f0adb5dbd (diff)
Peter Kjellerstedt:
GTK_WRAP_WORD_CHAR does not exist in old versions of GTK2+ (2.2.1 and earlier). The following patch should make it compile again (solution borrowed from GAIM). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17199 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--gtk/follow_dlg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/follow_dlg.c b/gtk/follow_dlg.c
index c06833c00e..4c07bff60c 100644
--- a/gtk/follow_dlg.c
+++ b/gtk/follow_dlg.c
@@ -64,6 +64,14 @@
#include "print_mswin.h"
#include "font_utils.h"
+/* This is backwards-compatibility code for old versions of GTK+ (2.2.1 and
+ * earlier). It defines the new wrap behavior (unknown in earlier versions)
+ * as the old (slightly buggy) wrap behavior.
+ */
+#ifndef GTK_WRAP_WORD_CHAR
+#define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
+#endif
+
/* Show Stream */
typedef enum {
FROM_CLIENT,