Ethereal-dev: [Ethereal-dev] RE: [Ethereal-cvs] rev 16939: /trunk/gtk/: follow_dlg.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Peter Kjellerstedt" <peter.kjellerstedt@xxxxxxxx>
Date: Tue, 7 Feb 2006 10:08:34 +0100
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).

Index: gtk/follow_dlg.c
===================================================================
--- gtk/follow_dlg.c	(revision 17195)
+++ gtk/follow_dlg.c	(working copy)
@@ -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,

//Peter

> -----Original Message-----
> From: ethereal-cvs-bounces@xxxxxxxxxxxx 
> [mailto:ethereal-cvs-bounces@xxxxxxxxxxxx] On Behalf Of 
> jmayer@xxxxxxxxxxxx
> Sent: Wednesday, January 04, 2006 00:46
> To: ethereal-cvs@xxxxxxxxxxxx
> Subject: [Ethereal-cvs] rev 16939: /trunk/gtk/: follow_dlg.c
> 
> User: jmayer
> Date: 2006/01/03 05:46 PM
> 
> Log:
>  Jaap Keuter:
>  
>  Browsing through the wishlist I came across this old one by Steve
Brown:
>  ------8<------
>  The GTK1 UI wordwraps assembled TCP streams, the GTK2 UI doesn't, but
>  should also. Not wrapping makes reading any protocol that lacks
linebreaks
>  virtually impossible (XML, etc.) as it all ends up on one line. I'm
tired
>  of having to install the GTK1 UI :P
>  ------8<------
>  It seems like a simple request. The oneliner patch implements this
wish.
>  Maybe someone feels the need to make it a preference or selectable.
> 
> Directory: /trunk/gtk/
>   Changes    Path            Action
>   +1 -0      follow_dlg.c    Modified
> 
> http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=16939&view=rev