From 485d1404366a9dd3d54ff1737cc2b4dee5017254 Mon Sep 17 00:00:00 2001 From: rds <rds> Date: Wed, 18 Oct 2006 15:20:23 +0000 Subject: [PATCH] keeping up with the feature set names move to window using the new itemfactory --- src/zmapWindow/zmapWindowDrawFeatures.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/zmapWindow/zmapWindowDrawFeatures.c b/src/zmapWindow/zmapWindowDrawFeatures.c index a5b8758af..0182539f9 100755 --- a/src/zmapWindow/zmapWindowDrawFeatures.c +++ b/src/zmapWindow/zmapWindowDrawFeatures.c @@ -26,9 +26,9 @@ * * Exported functions: * HISTORY: - * Last edited: Oct 11 10:20 2006 (edgrif) + * Last edited: Oct 13 14:07 2006 (rds) * Created: Thu Jul 29 10:45:00 2004 (rnc) - * CVS info: $Id: zmapWindowDrawFeatures.c,v 1.153 2006-10-11 09:47:11 edgrif Exp $ + * CVS info: $Id: zmapWindowDrawFeatures.c,v 1.154 2006-10-18 15:20:23 rds Exp $ *------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ #include <ZMap/zmapConfig.h> #include <zmapWindow_P.h> #include <zmapWindowContainer.h> - +#include <zmapWindowItemFactory.h> /* these will go when scale is in separate window. */ #define SCALEBAR_OFFSET 0.0 @@ -213,6 +213,9 @@ void zmapWindowDrawFeatures(ZMapWindow window, zMapAssert(window && full_context && diff_context) ; + window->item_factory = zmapWindowFToIFactoryOpen(window->context_to_item, window->long_items); + zmapWindowFeatureFactoryInit(window); + /* Set up colours. */ if (!window->done_colours) { @@ -361,6 +364,8 @@ void zmapWindowDrawFeatures(ZMapWindow window, if(debug_containers) zmapWindowContainerPrint(root_group) ; + zmapWindowFToIFactoryClose(window->item_factory); + return ; } @@ -875,7 +880,7 @@ static void drawBlocks(gpointer data, gpointer user_data) /* Add _all_ the types cols for the block, at this stage we don't know if they have features * and also the user may want them displayed even if empty.... */ - g_list_foreach(canvas_data->full_context->feature_set_names, createSetColumn, canvas_data) ; + g_list_foreach(canvas_data->window->feature_set_names, createSetColumn, canvas_data) ; /* Now draw all features within each column, note that this operates on the feature context * so is called only for feature sets that contain features. */ -- GitLab