diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-12-09 06:48:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-12-09 06:48:40 +0000 |
commit | 11d8817da0148daa1cda2db873a3ec31c0c02a69 (patch) | |
tree | 3958ce9f0093b2fb5c831ed58c5adb1a660df655 /gtk/packet_list.c | |
parent | c7cee4331f5586c7987a82caaf93351f07ec288e (diff) |
Don't automatically size the columns - that's expensive in large
captures, as it has to compute the width of an auto-resizing column in
every row. Just pick fixed widths for the columns (and tune the width
of the "Protocol" column so that it's not narrower than the column
title).
svn path=/trunk/; revision=9219
Diffstat (limited to 'gtk/packet_list.c')
-rw-r--r-- | gtk/packet_list.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/gtk/packet_list.c b/gtk/packet_list.c index a38251de05..38efaf5aeb 100644 --- a/gtk/packet_list.c +++ b/gtk/packet_list.c @@ -1,7 +1,7 @@ /* packet_list.c * packet list related functions 2002 Olivier Abad * - * $Id: packet_list.c,v 1.6 2003/12/06 04:05:02 guy Exp $ + * $Id: packet_list.c,v 1.7 2003/12/09 06:48:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -62,25 +62,6 @@ packet_list_select_row(gint row) } void -packet_list_set_column_auto_resize(gint column, gboolean auto_resize) -{ - gtk_clist_set_column_auto_resize(GTK_CLIST(packet_list), column, - auto_resize); -} - -void -packet_list_set_column_resizeable(gint column, gboolean resizeable) -{ - gtk_clist_set_column_resizeable(GTK_CLIST(packet_list), column, resizeable); -} - -void -packet_list_set_column_width(gint column, gint width) -{ - gtk_clist_set_column_width(GTK_CLIST(packet_list), column, width); -} - -void packet_list_moveto_end(void) { gtk_clist_moveto(GTK_CLIST(packet_list), @@ -146,7 +127,7 @@ packet_list_set_cls_time_width(gint column) pango_layout_get_pixel_size(layout, &width, NULL); g_object_unref(G_OBJECT(layout)); #endif - packet_list_set_column_width(column, width); + gtk_clist_set_column_width(GTK_CLIST(packet_list), column, width); } gpointer |