aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/new_packet_list.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-10-08 11:08:36 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-10-08 11:08:36 +0000
commit06a60e48c3cfa1a328c7293a9c5eac42155395b3 (patch)
treee22544b789d1a808e3a6eca37bc8fa2a009b8724 /gtk/new_packet_list.c
parentf6ee7d8d4f62a49ca9da204c748069660c4419e7 (diff)
Show custom column occurrence in the packet list heading tooltips.
svn path=/trunk/; revision=34434
Diffstat (limited to 'gtk/new_packet_list.c')
-rw-r--r--gtk/new_packet_list.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/new_packet_list.c b/gtk/new_packet_list.c
index 36a5020999..c412b3d438 100644
--- a/gtk/new_packet_list.c
+++ b/gtk/new_packet_list.c
@@ -623,7 +623,11 @@ create_view_and_model(void)
if (hfi != NULL) {
if (hfi->parent != -1) {
/* Prefix with protocol name */
- tooltip_text = g_strdup_printf("%s\n%s (%s)", proto_get_protocol_name(hfi->parent), hfi->name, hfi->abbrev);
+ if (cfile.cinfo.col_custom_occurrence[i] != 0) {
+ tooltip_text = g_strdup_printf("%s\n%s (%s#%d)", proto_get_protocol_name(hfi->parent), hfi->name, hfi->abbrev, cfile.cinfo.col_custom_occurrence[i]);
+ } else {
+ tooltip_text = g_strdup_printf("%s\n%s (%s)", proto_get_protocol_name(hfi->parent), hfi->name, hfi->abbrev);
+ }
} else {
tooltip_text = g_strdup_printf("%s (%s)", hfi->name, hfi->abbrev);
}