diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-05-18 00:05:12 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-05-18 00:05:12 +0000 |
commit | 8fea0f1db21546f8c4f4ecd0c5dc66f6f7769a6a (patch) | |
tree | 14d965cc90c10c8e825bf3edd0f6ab85ab0675c9 /gtk/proto_draw.c | |
parent | 9ade33284d8025fbf0e38fb0a7b928579d87d4f7 (diff) |
this is a hack, to workaround a bug in GTK2.x!
when changing the font size, even refilling of the corresponding
gtk_text_buffer doesn't seem to trigger an update.
The only workaround is to freshly select the frame, which will remove any
existing notebook tabs and "restart" the whole byte view again.
svn path=/trunk/; revision=10915
Diffstat (limited to 'gtk/proto_draw.c')
-rw-r--r-- | gtk/proto_draw.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c index 5aa9962138..e9536b1d52 100644 --- a/gtk/proto_draw.c +++ b/gtk/proto_draw.c @@ -1,7 +1,7 @@ /* proto_draw.c * Routines for GTK+ packet display * - * $Id: proto_draw.c,v 1.97 2004/05/15 00:40:06 ulfl Exp $ + * $Id: proto_draw.c,v 1.98 2004/05/18 00:05:12 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -215,10 +215,20 @@ redraw_hex_dump(GtkWidget *nb, frame_data *fd, field_info *finfo) void redraw_hex_dump_all(void) { - if (cfile.current_frame != NULL) - redraw_hex_dump( byte_nb_ptr, cfile.current_frame, cfile.finfo_selected); + if (cfile.current_frame != NULL) + redraw_hex_dump( byte_nb_ptr, cfile.current_frame, cfile.finfo_selected); redraw_hex_dump_packet_wins(); + +#if GTK_MAJOR_VERSION >= 2 + /* XXX - this is a hack, to workaround a bug in GTK2.x! + when changing the font size, even refilling of the corresponding + gtk_text_buffer doesn't seem to trigger an update. + The only workaround is to freshly select the frame, which will remove any + existing notebook tabs and "restart" the whole byte view again. */ + if (cfile.current_frame != NULL) + goto_frame(&cfile, cfile.current_frame->num); +#endif } #if GTK_MAJOR_VERSION < 2 |