Ethereal-dev: [Ethereal-dev] Patch to prevent loop in flow analysis graph

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

From: Graeme Hewson <ghewson@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Aug 2005 20:41:00 +0100
A "feature" of GTK 1 which gtk/graph_analysis.c works around is also present in GTK 2.2.1. This patch simply extends the workaround.
--- graph_analysis.c.orig	2005-08-23 00:22:40.000000000 +0100
+++ graph_analysis.c	2005-08-23 20:26:27.995854511 +0100
@@ -757,8 +757,9 @@
 #endif
 
 		/* resize the "time" draw area */
-#if GTK_MAJOR_VERSION >= 2
-               /* in GTK 1 it causes a loop of configure events */
+/* XXX is this version late enough? Fails on 2.2.1; is OK on 2.6.4 */
+#if GTK_CHECK_VERSION(2,4,0)
+               /* in GTK 1 and early GTK 2 it causes a loop of configure events */
         WIDGET_SET_SIZE(user_data->dlg.draw_area_time, label_width + 6, user_data->dlg.pixmap_height);
 		gtk_widget_show(user_data->dlg.draw_area_time);
 #endif