Drop count is 64 bits
svn path=/trunk/; revision=41012
This commit is contained in:
parent
e884926644
commit
6971302a1b
1 changed files with 22 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue