aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/packet_list_store.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-07-25 18:01:42 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-07-25 18:01:42 +0000
commit6349999757de133491f5d5f58e450ab67785922f (patch)
tree5097031dfc06caaf1485e6f52af1857816fdf1ea /ui/gtk/packet_list_store.h
parent59de6c3a8f46a80e98983779ceb319b23ebc8ed2 (diff)
Allocate col_text & col_text_len only for columns not based on frame_data
svn path=/trunk/; revision=44006
Diffstat (limited to 'ui/gtk/packet_list_store.h')
-rw-r--r--ui/gtk/packet_list_store.h5
1 files changed, 3 insertions, 2 deletions
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);