diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-10-08 11:08:36 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-10-08 11:08:36 +0000 |
commit | 06a60e48c3cfa1a328c7293a9c5eac42155395b3 (patch) | |
tree | e22544b789d1a808e3a6eca37bc8fa2a009b8724 /gtk/new_packet_list.c | |
parent | f6ee7d8d4f62a49ca9da204c748069660c4419e7 (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.c | 6 |
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); } |