a767f7035297137ff676dc149993c150cf511858 max Fri Sep 3 06:49:08 2021 -0700 changes after code review, refs #28080 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 74c42f8..dabba2f 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -8023,36 +8023,36 @@ } static void printTrackLink(struct track *track) /* print a link hgTrackUi with shortLabel and various icons and mouseOvers */ { if (track->hasUi) { char *url = trackUrl(track->track, chromName); char *longLabel = replaceChars(track->longLabel, "\"", """); // Print an icon before the title when one is defined hPrintPennantIcon(track->tdb); struct dyString *dsMouseOver = dyStringCreate("%s", longLabel); struct trackDb *tdb = track->tdb; - if (tdb->children) + if (tdbIsSuper(tdb)) { dyStringPrintf(dsMouseOver, " - this is a container track with %d subtracks of different types (super track)", slCount(tdb->children)); } - else if (tdb->subtracks) + else if (tdbIsComposite(tdb)) { dyStringPrintf(dsMouseOver, " - this is a container track with %d subtracks of similar types (composite track)", slCount(tdb->subtracks)); } hPrintf("", url, dyStringCannibalize(&dsMouseOver)); freeMem(url); freeMem(longLabel); } // show the folder icon from the font-awesome collection. // the icon collection also contains a "fa fa-folder-o" icon, which is the outline. It was decided to use only the filled out icon for now. if (tdbIsSuper(track->tdb) || tdbIsComposite(track->tdb)) hPrintf("");