summaryrefslogtreecommitdiff
path: root/ui/gtk/packet_list_store.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-09-04 02:35:25 +0000
committerJörg Mayer <jmayer@loplof.de>2012-09-04 02:35:25 +0000
commit12a0aa484957651b221bf0ec83fa2963a48941c5 (patch)
treee7940e11e2934d966ab19187871583f9091b9f80 /ui/gtk/packet_list_store.c
parent380fe63a6d9a02a53a12baa4a25e4a31934f8178 (diff)
downloadwireshark-12a0aa484957651b221bf0ec83fa2963a48941c5.tar.gz
- Replace packet_list_recreate_visible_rows -> packet_list_recreate_visible_rows_list
- Replace new_packet_list_ -> packet_list_ svn path=/trunk/; revision=44765
Diffstat (limited to 'ui/gtk/packet_list_store.c')
-rw-r--r--ui/gtk/packet_list_store.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/gtk/packet_list_store.c b/ui/gtk/packet_list_store.c
index 3e9c696414..3a6e0ff15c 100644
--- a/ui/gtk/packet_list_store.c
+++ b/ui/gtk/packet_list_store.c
@@ -272,7 +272,7 @@ packet_list_init(PacketList *packet_list)
}
packet_list->n_text_cols = j;
-#ifdef NEW_PACKET_LIST_STATISTICS
+#ifdef PACKET_LIST_STATISTICS
packet_list->const_strings = 0;
#endif
}
@@ -576,7 +576,7 @@ packet_list_iter_parent(GtkTreeModel *tree_model _U_, GtkTreeIter *iter _U_,
}
PacketList *
-new_packet_list_new(void)
+packet_list_new(void)
{
PacketList *newpacketlist;
@@ -605,7 +605,7 @@ packet_list_row_deleted(PacketList *packet_list, guint pos)
#endif
void
-new_packet_list_store_clear(PacketList *packet_list)
+packet_list_store_clear(PacketList *packet_list)
{
g_return_if_fail(packet_list != NULL);
g_return_if_fail(PACKETLIST_IS_LIST(packet_list));
@@ -629,7 +629,7 @@ new_packet_list_store_clear(PacketList *packet_list)
/* Generate new number */
packet_list->stamp = g_random_int();
-#ifdef NEW_PACKET_LIST_STATISTICS
+#ifdef PACKET_LIST_STATISTICS
g_warning("Const strings: %u", packet_list->const_strings);
packet_list->const_strings = 0;
#endif
@@ -738,7 +738,7 @@ packet_list_change_record(PacketList *packet_list, PacketListRecord *record, gin
/* This is a constant string, so we don't have to copy it */
record->col_text[text_col] = (gchar *) cinfo->col_data[col];
record->col_text_len[text_col] = (gushort) col_text_len;
-#ifdef NEW_PACKET_LIST_STATISTICS
+#ifdef PACKET_LIST_STATISTICS
++packet_list->const_strings;
#endif
break;
@@ -753,7 +753,7 @@ packet_list_change_record(PacketList *packet_list, PacketListRecord *record, gin
record->col_text_len[text_col] = (gushort) col_text_len;
if (!record->col_text_len[text_col]) {
record->col_text[text_col] = "";
-#ifdef NEW_PACKET_LIST_STATISTICS
+#ifdef PACKET_LIST_STATISTICS
++packet_list->const_strings;
#endif
break;
@@ -1099,7 +1099,7 @@ packet_list_resort(PacketList *packet_list)
}
guint
-packet_list_recreate_visible_rows(PacketList *packet_list)
+packet_list_recreate_visible_rows_list(PacketList *packet_list)
{
guint phy_idx;
guint vis_idx;