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
776c9e4e
Commit
776c9e4e
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
fix calls to get feature/featureset description/text.
parent
32088bca
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/zmapWindowFeature.c
+29
-16
29 additions, 16 deletions
src/zmapWindow/zmapWindowFeature.c
with
29 additions
and
16 deletions
src/zmapWindow/zmapWindowFeature.c
+
29
−
16
View file @
776c9e4e
...
...
@@ -28,9 +28,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
Mar 17 09:39
2009 (edgrif)
* Last edited:
Apr 6 14:44
2009 (edgrif)
* Created: Mon Jan 9 10:25:40 2006 (edgrif)
* CVS info: $Id: zmapWindowFeature.c,v 1.15
6
2009-0
3-17 15:52:51
edgrif Exp $
* CVS info: $Id: zmapWindowFeature.c,v 1.15
7
2009-0
4-06 13:44:35
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -538,36 +538,46 @@ FooCanvasItem *zmapWindowFeatureDraw(ZMapWindow window,
/* Look for any description in the feature set. */
char
*
zmapWindowFeatureSetDescription
(
GQuark
feature_set_id
,
ZMapFeatureTypeStyle
style
)
char
*
zmapWindowFeatureSetDescription
(
ZMapFeatureSet
feature_set
)
{
char
*
description
=
NULL
;
char
*
style_text
=
NULL
;
zMapAssert
(
feature_set_id
&&
style
)
;
zMapStyleGet
(
style
,
ZMAPSTYLE_PROPERTY_DESCRIPTION
,
&
style_text
,
NULL
)
;
description
=
g_strdup_printf
(
"%s : %s%s%s"
,
(
char
*
)
g_quark_to_string
(
feature_set_id
),
style_text
?
"
\"
"
:
""
,
style_text
?
style_text
:
"<no description available>"
,
style_text
?
"
\"
"
:
""
)
;
description
=
g_strdup_printf
(
"%s : %s%s%s"
,
(
char
*
)
g_quark_to_string
(
feature_set
->
original_id
),
feature_set
->
description
?
"
\"
"
:
""
,
feature_set
->
description
?
feature_set
->
description
:
"<no description available>"
,
feature_set
->
description
?
"
\"
"
:
""
)
;
return
description
;
}
/* Get the features text stuff... */
char
*
zmapWindowFeatureSourceDescription
(
ZMapFeature
feature
)
{
char
*
description
=
NULL
;
zMapAssert
(
zMapFeatureIsValid
((
ZMapFeatureAny
)
feature
))
;
description
=
g_strdup_printf
(
"%s : %s%s%s"
,
(
char
*
)
g_quark_to_string
(
feature
->
source_id
),
feature
->
source_text
?
"
\"
"
:
""
,
feature
->
source_text
?
(
char
*
)
g_quark_to_string
(
feature
->
source_text
)
:
"<no description available>"
,
feature
->
source_text
?
"
\"
"
:
""
)
;
return
description
;
}
char
*
zmapWindowFeatureDescription
(
ZMapFeature
feature
)
{
char
*
description
=
NULL
;
zMapAssert
(
zMapFeatureIsValid
((
ZMapFeatureAny
)
feature
))
;
if
(
feature
->
text
)
if
(
feature
->
description
)
{
description
=
g_strdup
(
feature
->
text
)
;
description
=
g_strdup
(
feature
->
description
)
;
}
return
description
;
...
...
@@ -575,6 +585,9 @@ char *zmapWindowFeatureDescription(ZMapFeature feature)
gboolean
zMapWindowGetDNAStatus
(
ZMapWindow
window
)
{
gboolean
drawable
=
FALSE
;
...
...
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