From ed71765bbb824c2d7d2fa5c63dc0bb9371ae17b5 Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Sat, 20 Jan 2007 23:23:50 +0000 Subject: Fix a bug where the size of each column was being computed with the GTK+ default font of Sans 10 instead of the setting in Wireshark (such as Monospace 10). On some systems this bug was causing the contents of columns such as the command line specified (CLS) time to be cut off. svn path=/trunk/; revision=20512 --- gtk/packet_list.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk') diff --git a/gtk/packet_list.c b/gtk/packet_list.c index 9e6cdfb41c..8c51b69d8f 100644 --- a/gtk/packet_list.c +++ b/gtk/packet_list.c @@ -474,6 +474,11 @@ packet_list_set_font(FONT_TYPE *font) #else PangoLayout *layout; + /* Manually set the font so it can be used right away in the + * pango_layout_get_pixel_size call below. The gtk_widget_modify_font + * function only takes effect after the widget is displayed. */ + packet_list->style->font_desc = pango_font_description_copy(font); + gtk_widget_modify_font(packet_list, font); #endif -- cgit v1.2.3