diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-11-19 21:11:41 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-11-19 21:11:41 +0000 |
commit | 542a34ced8bfce7eb282526fc6be19423b1bc27a (patch) | |
tree | 6cc0c54593457adc3589218f8f1b3eb27acdfd30 /gtk/new_packet_list.c | |
parent | 907bf4e36b75b260acffa39f3a0f337df1be756c (diff) |
Implement new_packet_list_recreate(). This should be reimplemented to
avoid building a new table and redissecting all packets.
svn path=/trunk/; revision=31024
Diffstat (limited to 'gtk/new_packet_list.c')
-rw-r--r-- | gtk/new_packet_list.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/new_packet_list.c b/gtk/new_packet_list.c index 0bea045fc4..024854938e 100644 --- a/gtk/new_packet_list.c +++ b/gtk/new_packet_list.c @@ -62,6 +62,7 @@ #include "gtk/capture_file_dlg.h" #include "gtk/main_statusbar.h" #include "gtk/packet_win.h" +#include "gtk/main.h" static PacketList *packetlist; static gboolean last_at_end = FALSE; @@ -101,6 +102,25 @@ new_packet_list_create(void) return scrollwin; } +/* XXX - implement a smarter solution for recreating the packet list */ +void +new_packet_list_recreate(void) +{ + gtk_widget_destroy(pkt_scrollw); + + prefs.num_cols = g_list_length(prefs.col_list); + + build_column_format_array(&cfile.cinfo, prefs.num_cols, FALSE); + + pkt_scrollw = new_packet_list_create(); + gtk_widget_show_all(pkt_scrollw); + + main_widgets_rearrange(); + + if(cfile.state != FILE_CLOSED) + redissect_packets(); +} + guint new_packet_list_append(column_info *cinfo _U_, frame_data *fdata, packet_info *pinfo _U_) { |