set annotation draw function by type
[mussa.git] / alg / glseqbrowser.cpp
index 107099bd824105df653a994699472f3a122cf2fb..c3f5cb19a8f4199e7debd2892fd40615d63c1465 100644 (file)
@@ -354,7 +354,9 @@ void GlSeqBrowser::push_sequence(GlSequence gs)
 
 void GlSeqBrowser::push_sequence(GlSequenceRef gs)
 {
+  ColorRef default_color(new Color(0.0, 0.8, 0.0));
   GlSequenceRef new_gs(new GlSequence(gs));
+  new_gs->update_annotation_draw_function("gene", draw_narrow_track, default_color);
   // mark where the sequence is
   new_gs->add_annotations_for_defined_sequence(draw_track);