src/hg/hgGenome/hgGenome.c 1.67

1.67 2010/05/11 01:43:24 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgGenome/hgGenome.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGenome/hgGenome.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -b -B -U 4 -r1.66 -r1.67
--- src/hg/hgGenome/hgGenome.c	25 Mar 2010 17:20:40 -0000	1.66
+++ src/hg/hgGenome/hgGenome.c	11 May 2010 01:43:24 -0000	1.67
@@ -70,9 +70,9 @@
     struct trackDb *tdb = ct->tdb;
     if (sameString(tdb->type, "chromGraph"))
         {
 	AllocVar(gg);
-	gg->name = tdb->tableName;
+	gg->name = tdb->table;
 	gg->shortLabel = tdb->shortLabel;
 	gg->longLabel = tdb->longLabel;
 	gg->binFileName = trackDbRequiredSetting(tdb, "binaryFile");
 	gg->settings = chromGraphSettingsGet(gg->name, NULL, tdb, cart);
@@ -156,9 +156,9 @@
 	struct chromGraphSettings *cgs = NULL;
 	if (compTdb == NULL)
 	    cgs = chromGraphSettingsGet(gg->name, conn2, tdb, cart);	
 	else
-	    cgs = chromGraphSettingsGet(compTdb->tableName, conn2, compTdb, cart);	
+	    cgs = chromGraphSettingsGet(compTdb->table, conn2, compTdb, cart);	
 	gg->shortLabel = tdb->shortLabel;
 	gg->longLabel = tdb->longLabel;
 	gg->settings = cgs;
 	}