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
df9056c5
Commit
df9056c5
authored
19 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
Add a resource to control whether empty columns are shown.
parent
8edd8964
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/zmapWindow.c
+8
-4
8 additions, 4 deletions
src/zmapWindow/zmapWindow.c
with
8 additions
and
4 deletions
src/zmapWindow/zmapWindow.c
+
8
−
4
View file @
df9056c5
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapWindow.h
* HISTORY:
* Last edited:
Sep 30 15:08
2005 (
rds
)
* Last edited:
Oct 13 14:24
2005 (
edgrif
)
* Created: Thu Jul 24 14:36:27 2003 (edgrif)
* CVS info: $Id: zmapWindow.c,v 1.9
4
2005-
09-30 14:09:45 rds
Exp $
* CVS info: $Id: zmapWindow.c,v 1.9
5
2005-
10-13 13:29:51 edgrif
Exp $
*-------------------------------------------------------------------
*/
#include
<math.h>
...
...
@@ -1215,10 +1215,11 @@ static gboolean getConfiguration(ZMapWindow window)
ZMapConfigStanza
window_stanza
;
char
*
window_stanza_name
=
ZMAP_WINDOW_CONFIG
;
ZMapConfigStanzaElementStruct
window_elements
[]
=
{{
"canvas_maxsize"
,
ZMAPCONFIG_INT
,
{
NULL
}},
{
"keep_empty_columns"
,
ZMAPCONFIG_BOOL
,
{
NULL
}},
{
NULL
,
-
1
,
{
NULL
}}}
;
/* Set default values in stanza, keep this in synch with initialisation of window_elements array. */
window_elements
[
0
].
data
.
i
=
ZMAP_WINDOW_MAX_WINDOW
;
zMapConfigGetStructInt
(
window_elements
,
"canvas_maxsize"
)
=
ZMAP_WINDOW_MAX_WINDOW
;
zMapConfigGetStructBool
(
window_elements
,
"keep_empty_columns"
)
=
FALSE
;
if
((
config
=
zMapConfigCreate
()))
{
...
...
@@ -1232,6 +1233,9 @@ static gboolean getConfiguration(ZMapWindow window)
next_window
=
zMapConfigGetNextStanza
(
window_list
,
NULL
)
;
window
->
canvas_maxwin_size
=
zMapConfigGetElementInt
(
next_window
,
"canvas_maxsize"
)
;
window
->
keep_empty_cols
=
zMapConfigGetElementBool
(
next_window
,
"keep_empty_columns"
)
;
zMapConfigDeleteStanzaSet
(
window_list
)
;
/* Not needed anymore. */
}
...
...
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