diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-06-04 02:06:16 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-06-04 02:06:16 +0000 |
commit | 50f9dbb838e84d3c15ecfdbb83fc95c1386eab50 (patch) | |
tree | b17330b269740bcb631ae01f498c9eca3eea11d6 /gtk/packet_list.c | |
parent | 66acca70187389e888f5a82150ab654cc955e72d (diff) |
fix #220: the automatic display of the vertical scrollbar at the packet list doesn't seem to work in all cases (not shown although scrolling would be necessary)
as I don't see a way to fix this (and it just don't really hurt, as this scrollbar is usually shown anyway if some more packets have to be display) just show it always
svn path=/trunk/; revision=14546
Diffstat (limited to 'gtk/packet_list.c')
-rw-r--r-- | gtk/packet_list.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/packet_list.c b/gtk/packet_list.c index 7baa9444ed..9aaf8aa928 100644 --- a/gtk/packet_list.c +++ b/gtk/packet_list.c @@ -497,6 +497,14 @@ packet_list_new(e_prefs *prefs) /* Packet list */ pkt_scrollw = scrolled_window_new(NULL, NULL); + /* The usual policy for scrolled windows is to set both scrollbars to automatic, + * meaning they'll only appear if the content doesn't fit into the window. + * + * As this doesn't seem to work in some cases for the vertical scrollbar + * (see http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=220), + * we show that scrollbar always. */ + gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(pkt_scrollw), + GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); #if GTK_MAJOR_VERSION >= 2 /* the eth_clist will have it's own GTK_SHADOW_IN, so don't use a shadow * for both widgets */ |