cf4ff9e5e58ef209a24d110e3f4daf120f0ccf8a
braney
  Mon Jan 23 17:35:01 2012 -0800
always step up through the ancestors when looking for track handlers (#6499)
diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h
index ba0d4d8..4786ac2 100644
--- src/hg/hgTracks/hgTracks.h
+++ src/hg/hgTracks/hgTracks.h
@@ -1237,32 +1237,33 @@
 /* Return a string that contains all the UI state in CGI var
  * format.  If toggleGroup is non-null the visibility of that
  * track will be toggled in the string. */
 
 boolean nextItemCompatible(struct track *tg);
 /* Check to see if we draw nextPrev item buttons on a track. */
 
 void linkedFeaturesLabelNextPrevItem(struct track *tg, boolean next);
 /* Default next-gene function for linkedFeatures.  Changes winStart/winEnd
  * and updates position in cart. */
 
 void createHgFindMatchHash();
 /* Read from the cart the string assocated with matches and
    put the matching items into a hash for highlighting later. */
 
-TrackHandler lookupTrackHandler(char *name);
-/* Lookup handler for track of give name.  Return NULL if none. */
+TrackHandler lookupTrackHandlerClosestToHome(struct trackDb *tdb);
+/* Lookup handler for track of give name.  Try parents if
+ * subtrack has a NULL handler.  Return NULL if none. */
 
 void registerTrackHandlers();
 /* Register tracks that include some non-standard methods. */
 
 void initColors(struct hvGfx *hvg);
 /* Initialize the shades of gray etc. */
 
 void findTrackColors(struct hvGfx *hvg, struct track *trackList);
 /* Find colors to draw in. */
 
 char *getItemDataName(struct track *tg, char *itemName);
 /* Translate an itemName to its itemDataName, using tg->itemDataName if is not
  * NULL. The resulting value should *not* be freed, and it should be assumed
  * that it will only remain valid until the next call of this function.*/