aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-02 17:51:48 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-02 17:51:48 +0000
commitd2ff16753c606a365c7722626833c2aa6f46ecee (patch)
treedd2622aa61dda59f48e32d14c4813994fae6a69e
parenta095cccc2318129505a3e5201b4c0a5807d4a325 (diff)
Adding new color rules should work now.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29671 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--gtk/new_packet_list.c5
-rw-r--r--gtk/new_packet_list.h1
-rw-r--r--gtk/packet_list_store.c12
-rw-r--r--gtk/packet_list_store.h2
4 files changed, 19 insertions, 1 deletions
diff --git a/gtk/new_packet_list.c b/gtk/new_packet_list.c
index 0466149497..f18df1b221 100644
--- a/gtk/new_packet_list.c
+++ b/gtk/new_packet_list.c
@@ -824,5 +824,10 @@ new_packet_list_get_widget(void)
return packetlist->view;
}
+void new_packet_list_colorize_packets(void)
+{
+ new_packet_list_reset_dissected(packetlist);
+ gtk_widget_queue_draw (packetlist->view);
+}
#endif /* NEW_PACKET_LIST */
diff --git a/gtk/new_packet_list.h b/gtk/new_packet_list.h
index 5cf335879b..c7b02eb111 100644
--- a/gtk/new_packet_list.h
+++ b/gtk/new_packet_list.h
@@ -71,6 +71,7 @@ void new_packet_list_copy_summary_cb(GtkWidget * w _U_, gpointer data _U_, copy_
extern void new_packet_list_recent_write_all(FILE *rf);
GtkWidget * new_packet_list_get_widget(void);
+void new_packet_list_colorize_packets(void);
#endif /* NEW_PACKET_LIST */
diff --git a/gtk/packet_list_store.c b/gtk/packet_list_store.c
index 7bfd4ecc5a..1d6b4153d1 100644
--- a/gtk/packet_list_store.c
+++ b/gtk/packet_list_store.c
@@ -758,5 +758,17 @@ packet_list_resort(PacketList *packet_list)
g_free(neworder);
}
+void
+new_packet_list_reset_dissected(PacketList *packet_list)
+{
+ PacketListRecord *record;
+ guint i;
+
+ for(i = 0; i < PACKET_LIST_RECORD_COUNT(packet_list->rows); ++i) {
+ record = PACKET_LIST_RECORD_GET(packet_list->rows, i);
+ record->dissected = FALSE;
+ }
+}
+
#endif /* NEW_PACKET_LIST */
diff --git a/gtk/packet_list_store.h b/gtk/packet_list_store.h
index a233852084..df7111be8f 100644
--- a/gtk/packet_list_store.h
+++ b/gtk/packet_list_store.h
@@ -91,7 +91,7 @@ PacketList *new_packet_list_new(void);
void new_packet_list_store_clear(PacketList *packet_list);
void packet_list_append_record(PacketList *packet_list, row_data_t *row_data);
void packet_list_change_record(PacketList *packet_list, guint row, gint col, column_info *cinfo);
-
+void new_packet_list_reset_dissected(PacketList *packet_list);
#endif /* NEW_PACKET_LIST */
#endif /* __NEW_PACKET_LIST_H__ */