src/hg/hgTracks/simpleTracks.c 1.140

1.140 2010/05/18 19:01:17 kent
Adding parent field to struct track, and filling it in for composite and container subtracks. For supertracks, the existing parent finding at the track (as opposed to trackDb) level is buried enough this is difficult, so putting this off until the mythical day when supertracks are refactored out. Making mrna searches open mrna track in hg19, and in general improving search auto-opening when track and table name are different.
Index: src/hg/hgTracks/simpleTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/simpleTracks.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -b -B -U 4 -r1.139 -r1.140
--- src/hg/hgTracks/simpleTracks.c	11 May 2010 01:43:28 -0000	1.139
+++ src/hg/hgTracks/simpleTracks.c	18 May 2010 19:01:17 -0000	1.140
@@ -10964,8 +10964,9 @@
     subtrack->table = subTdb->table;
     subtrack->shortLabel = subTdb->shortLabel;
     subtrack->longLabel = subTdb->longLabel;
     subtrack->priority = subTdb->priority;
+    subtrack->parent = track;
 
     /* Add color gradient. */
     if (finalR || finalG || finalB)
 	{