Drop count is 64 bits
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 13 Feb 2012 17:31:54 +0000 (17:31 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 13 Feb 2012 17:31:54 +0000 (17:31 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41012 f5534014-38df-0310-8fa8-9805f1628bb7

ui/gtk/new_packet_list.c

index 29fbb09..6ff1a24 100644 (file)
@@ -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)
 {