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
ff951a8c
Commit
ff951a8c
authored
18 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
fix the size of the locator when the pane is exposed after zooming in a long way...
parent
7c2e114c
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/zmapWindowNavigator.c
+29
-35
29 additions, 35 deletions
src/zmapWindow/zmapWindowNavigator.c
with
29 additions
and
35 deletions
src/zmapWindow/zmapWindowNavigator.c
+
29
−
35
View file @
ff951a8c
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited:
Dec 13
1
0
:58 200
6
(rds)
* Last edited:
Jan 2
1
7
:58 200
7
(rds)
* Created: Wed Sep 6 11:22:24 2006 (rds)
* CVS info: $Id: zmapWindowNavigator.c,v 1.1
4
200
6-12-13 15:18:02
rds Exp $
* CVS info: $Id: zmapWindowNavigator.c,v 1.1
5
200
7-01-02 17:59:27
rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -240,7 +240,7 @@ ZMapWindowNavigator zMapWindowNavigatorCreate(GtkWidget *canvas_widget)
navigate
->
scaling_factor
=
0
.
0
;
navigate
->
locator_bwidth
=
LOCATOR_LINE_WIDTH
;
navigate
->
locator_x1
=
0
.
0
;
navigate
->
locator_x2
=
0
.
0
;
navigate
->
locator_x2
=
LOCATOR_LINE_WIDTH
*
1
0
.
0
;
setupLocatorGroup
(
navigate
);
...
...
@@ -378,51 +378,41 @@ void zMapWindowNavigatorDrawFeatures(ZMapWindowNavigator navigate,
void
zMapWindowNavigatorDrawLocator
(
ZMapWindowNavigator
navigate
,
double
raw_top
,
double
raw_bot
)
{
double
rx1
,
ry1
,
rx2
,
ry2
;
double
top
,
bot
;
double
x1
,
y1
,
x2
,
y2
;
zMapAssert
(
navigate
&&
navigate
->
locator_group
&&
navigate
->
locator
);
/* Always set these... */
navigate
->
locator_span
.
x1
=
raw_top
;
navigate
->
locator_span
.
x2
=
raw_bot
;
if
(
navigate
->
draw_locator
)
{
rx1
=
navigate
->
locator_x1
;
rx2
=
navigate
->
locator_x2
;
navigate
->
locator_span
.
x1
=
raw_top
;
navigate
->
locator_span
.
x2
=
raw_bot
;
x1
=
navigate
->
locator_x1
;
x2
=
navigate
->
locator_x2
;
if
(
raw_top
==
0
.
0
&&
raw_top
==
raw_bot
)
{
foo_canvas_item_get_bounds
(
FOO_CANVAS_ITEM
(
navigate
->
locator_drag
),
NULL
,
&
ry1
,
NULL
,
&
ry2
);
top
=
ry1
;
bot
=
ry2
;
}
else
{
top
=
raw_top
;
bot
=
raw_bot
;
clampWorld2Scaled
(
navigate
,
&
top
,
&
bot
);
}
y1
=
raw_top
;
y2
=
raw_bot
;
clampWorld2Scaled
(
navigate
,
&
y1
,
&
y2
);
foo_canvas_item_set
(
FOO_CANVAS_ITEM
(
navigate
->
locator
),
"x1"
,
r
x1
,
"y1"
,
top
,
"x2"
,
r
x2
,
"y2"
,
bot
,
"x1"
,
x1
,
"y1"
,
y1
,
"x2"
,
x2
,
"y2"
,
y2
,
NULL
);
foo_canvas_item_set
(
FOO_CANVAS_ITEM
(
navigate
->
locator_drag
),
"x1"
,
r
x1
,
"y1"
,
top
,
"x2"
,
r
x2
,
"y2"
,
bot
,
"x1"
,
x1
,
"y1"
,
y1
,
"x2"
,
x2
,
"y2"
,
y2
,
NULL
);
if
(
locator_debug_G
)
printCoordsInfo
(
navigate
,
__PRETTY_FUNCTION__
,
top
,
bot
);
printCoordsInfo
(
navigate
,
__PRETTY_FUNCTION__
,
y1
,
y2
);
foo_canvas_item_show
(
FOO_CANVAS_ITEM
(
navigate
->
locator_group
));
foo_canvas_item_raise_to_top
(
FOO_CANVAS_ITEM
(
navigate
->
locator_group
));
...
...
@@ -783,8 +773,10 @@ static void drawScale(NavigateDraw draw_data)
static
void
lazyNeedsFixing
(
gpointer
user_data
)
{
#warning MEMORY LEAK
printf
(
"fix this memory leak, especially why it doesn't get run!
\n
"
);
printf
(
"fix this memory leak, especially why it doesn't always get run!
\n
"
);
return
;
}
...
...
@@ -1280,7 +1272,9 @@ static gboolean navCanvasItemEventCB(FooCanvasItem *item, GdkEvent *event, gpoin
static
gboolean
navCanvasItemDestroyCB
(
FooCanvasItem
*
feature_item
,
gpointer
data
)
{
//ZMapWindowNavigator navigate = (ZMapWindowNavigator)data;
printf
(
"item got destroyed
\n
"
);
if
(
locator_debug_G
)
printf
(
"item got destroyed
\n
"
);
return
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