From 6349999757de133491f5d5f58e450ab67785922f Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Wed, 25 Jul 2012 18:01:42 +0000 Subject: Allocate col_text & col_text_len only for columns not based on frame_data svn path=/trunk/; revision=44006 --- ui/gtk/packet_list_store.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui/gtk/packet_list_store.h') diff --git a/ui/gtk/packet_list_store.h b/ui/gtk/packet_list_store.h index 0c264c007c..10c348c7ff 100644 --- a/ui/gtk/packet_list_store.h +++ b/ui/gtk/packet_list_store.h @@ -67,7 +67,9 @@ struct _PacketList /** Has the entire file been columnized? */ gboolean columnized; - gint n_cols; /* copy of cfile.cinfo.num_cols */ + gint n_cols; /* copy of cfile.cinfo.num_cols */ + gint n_text_cols; /* number of cols not based on frame, which we need to store text */ + gint *col_to_text; /* mapping from column number to col_text index, when -1 column is based on frame_data */ GtkWidget *view; gint sort_id; @@ -96,7 +98,6 @@ void new_packet_list_store_clear(PacketList *packet_list); guint packet_list_recreate_visible_rows(PacketList *packet_list); gboolean packet_list_visible_record(PacketList *packet_list, GtkTreeIter *iter); gint packet_list_append_record(PacketList *packet_list, frame_data *fdata); -void packet_list_change_record(PacketList *packet_list, guint row, gint col, column_info *cinfo); gboolean packet_list_do_packet_list_dissect_and_cache_all(PacketList *packet_list, gint sort_col_id); void packet_list_reset_colorized(PacketList *packet_list); const char* packet_list_get_widest_column_string(PacketList *packet_list, gint col); -- cgit v1.2.3