From: etxrab Date: Mon, 13 Feb 2012 17:31:54 +0000 (+0000) Subject: Drop count is 64 bits X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=e264ede08c890e88ed4b6413bc607fa18bdd64bf Drop count is 64 bits git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41012 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/ui/gtk/new_packet_list.c b/ui/gtk/new_packet_list.c index 29fbb09363..6ff1a245f6 100644 --- a/ui/gtk/new_packet_list.c +++ b/ui/gtk/new_packet_list.c @@ -1718,6 +1718,28 @@ new_packet_list_get_packet_comment(void) return record->fdata->opt_comment; } +void +new_packet_list_update_packet_comment(gchar *new_packet_comment) +{ + + GtkTreeModel *model; + GtkTreeSelection *selection; + GtkTreeIter iter; + PacketListRecord *record; + + selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(packetlist->view)); + /* model is filled with the current model as a convenience. */ + if (!gtk_tree_selection_get_selected(selection, &model, &iter)) + return; + + record = new_packet_list_get_record(model, &iter); + g_free(record->fdata->opt_comment); + record->fdata->opt_comment = new_packet_comment; + + new_packet_list_queue_draw(); + +} + void new_packet_list_recent_write_all(FILE *rf) {