Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
fa621799
Commit
fa621799
authored
17 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
fix compile error
parent
78990f21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowDrawFeatures.c
+38
-36
38 additions, 36 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
with
38 additions
and
36 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
+
38
−
36
View file @
fa621799
...
...
@@ -26,9 +26,9 @@
*
* Exported functions:
* HISTORY:
* Last edited: Apr 1
1
1
7:16
2008 (rds)
* Last edited: Apr 1
4
1
1:31
2008 (rds)
* Created: Thu Jul 29 10:45:00 2004 (rnc)
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.20
2
2008-04-1
2 16:4
9:
1
4 rds Exp $
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.20
3
2008-04-1
5 07:2
9:
4
4 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -141,6 +141,8 @@ void addDataToContainer(FooCanvasGroup *container, ZMapFeatureAny feature) ;
static
void
printFeatureSet
(
GQuark
key_id
,
gpointer
data
,
gpointer
user_data
)
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
static
FooCanvasGroup
*
separatorGetFeatureSetColumn
(
FooCanvasGroup
*
separator_parent
,
ZMapFeatureSet
feature_set
);
extern
GTimer
*
view_timer_G
;
...
...
@@ -534,40 +536,6 @@ gboolean zmapWindowCreateSetColumns(ZMapWindow window,
return
created
;
}
/* return zero if match */
static
gint
separator_find_col_func
(
gconstpointer
list_data
,
gconstpointer
user_data
)
{
FooCanvasGroup
*
column_parent
=
FOO_CANVAS_GROUP
(
list_data
);
ZMapFeatureSet
feature_set
=
(
ZMapFeatureSet
)
user_data
;
ZMapFeatureSet
column_set
;
gint
match
=
-
1
;
if
((
column_set
=
zmapWindowContainerGetData
(
column_parent
,
ITEM_FEATURE_DATA
)))
{
if
(
column_set
->
unique_id
==
feature_set
->
unique_id
)
match
=
0
;
}
return
match
;
}
static
FooCanvasGroup
*
separatorGetFeatureSetColumn
(
FooCanvasGroup
*
separator_parent
,
ZMapFeatureSet
feature_set
)
{
FooCanvasGroup
*
column
=
NULL
;
FooCanvasGroup
*
features
;
GList
*
column_list
=
NULL
;
features
=
zmapWindowContainerGetFeatures
(
separator_parent
);
column_list
=
g_list_find_custom
(
features
->
item_list
,
feature_set
,
separator_find_col_func
);
if
(
column_list
)
column
=
FOO_CANVAS_GROUP
(
column_list
->
data
);
return
column
;
}
/* Called for each feature set, it then calls a routine to draw each of its features. */
/* The feature set will be filtered on supplied frame by ProcessFeature.
* ProcessFeature splits the feature sets features into the separate strands.
...
...
@@ -1863,5 +1831,39 @@ void addDataToContainer(FooCanvasGroup *container, ZMapFeatureAny feature)
/* return zero if match */
static
gint
separator_find_col_func
(
gconstpointer
list_data
,
gconstpointer
user_data
)
{
FooCanvasGroup
*
column_parent
=
FOO_CANVAS_GROUP
(
list_data
);
ZMapFeatureSet
feature_set
=
(
ZMapFeatureSet
)
user_data
;
ZMapFeatureSet
column_set
;
gint
match
=
-
1
;
if
((
column_set
=
zmapWindowContainerGetData
(
column_parent
,
ITEM_FEATURE_DATA
)))
{
if
(
column_set
->
unique_id
==
feature_set
->
unique_id
)
match
=
0
;
}
return
match
;
}
static
FooCanvasGroup
*
separatorGetFeatureSetColumn
(
FooCanvasGroup
*
separator_parent
,
ZMapFeatureSet
feature_set
)
{
FooCanvasGroup
*
column
=
NULL
;
FooCanvasGroup
*
features
;
GList
*
column_list
=
NULL
;
features
=
zmapWindowContainerGetFeatures
(
separator_parent
);
column_list
=
g_list_find_custom
(
features
->
item_list
,
feature_set
,
separator_find_col_func
);
if
(
column_list
)
column
=
FOO_CANVAS_GROUP
(
column_list
->
data
);
return
column
;
}
/****************** end of file ************************************/
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment