aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-01-20 23:23:50 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-01-20 23:23:50 +0000
commited71765bbb824c2d7d2fa5c63dc0bb9371ae17b5 (patch)
treeb9ce416764fe219f31f2412590ee1e2edede5540 /gtk
parent1e61c642e5fa6c7596ab68e08588770b7d19efb1 (diff)
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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/packet_list.c5
1 files changed, 5 insertions, 0 deletions
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