aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2000-01-25 03:45:45 +0000
committerGerald Combs <gerald@wireshark.org>2000-01-25 03:45:45 +0000
commitce6ccdeb1e49b94cc07040e815ea908e25d7d0a2 (patch)
treef90046e11b4621aa1958c8a1c831f6018938125d /gtk
parentddbd2ee9acbf582e38b4d7944c3dd02176005909 (diff)
downloadwireshark-ce6ccdeb1e49b94cc07040e815ea908e25d7d0a2.tar.gz
wireshark-ce6ccdeb1e49b94cc07040e815ea908e25d7d0a2.tar.bz2
wireshark-ce6ccdeb1e49b94cc07040e815ea908e25d7d0a2.zip
Try to work around the undraw_cursor() bug in GTK+ 1.2.3 - 1.2.6. Setting
the text widget scroll bar adjustment to 0.0 appears to fix things (on my system, at least). svn path=/trunk/; revision=1550
Diffstat (limited to 'gtk')
-rw-r--r--gtk/proto_draw.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c
index 26f3ab25fd..533aa3f567 100644
--- a/gtk/proto_draw.c
+++ b/gtk/proto_draw.c
@@ -1,7 +1,7 @@
/* gtkpacket.c
* Routines for GTK+ packet display
*
- * $Id: proto_draw.c,v 1.12 1999/12/29 20:10:12 gram Exp $
+ * $Id: proto_draw.c,v 1.13 2000/01/25 03:45:45 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -68,6 +68,11 @@ packet_hex_print(GtkText *bv, guint8 *pd, gint len, gint bstart, gint blen,
/* Clear out the text */
gtk_text_set_point(bv, 0);
+ /* Keep GTK+ 1.2.3 through 1.2.6 from dumping core - see
+ http://ethereal.zing.org/lists/ethereal-dev/199912/msg00312.html and
+ http://www.gnome.org/mailing-lists/archives/gtk-devel-list/1999-October/0051.shtml
+ for more information */
+ gtk_adjustment_set_value(bv->vadj, 0.0);
gtk_text_forward_delete(bv, gtk_text_get_length(bv));
if (bstart >= 0 && blen >= 0) {