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
d03ea51e
Commit
d03ea51e
authored
15 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
fix update hooks code
parent
b3797050
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/items/zmapWindowContainerGroup.c
+38
-3
38 additions, 3 deletions
src/zmapWindow/items/zmapWindowContainerGroup.c
with
38 additions
and
3 deletions
src/zmapWindow/items/zmapWindowContainerGroup.c
+
38
−
3
View file @
d03ea51e
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Jun
5 14
:1
7
2009 (rds)
* Last edited: Jun
9 23
:1
3
2009 (rds)
* Created: Wed Dec 3 10:02:22 2008 (rds)
* CVS info: $Id: zmapWindowContainerGroup.c,v 1.
3
2009-06-
05 13:18:0
5 rds Exp $
* CVS info: $Id: zmapWindowContainerGroup.c,v 1.
4
2009-06-
10 10:06:4
5 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -842,10 +842,14 @@ static void zmap_window_container_update_with_crop(FooCanvasItem *item,
static
void
invoke_update_hooks
(
ZMapWindowContainerGroup
container
,
GSList
*
hooks_list
,
double
x1
,
double
y1
,
double
x2
,
double
y2
)
{
FooCanvasItem
*
item
;
FooCanvasPoints
bounds
;
double
coords
[
4
]
=
{
0
.
0
};
GSList
*
hooks
;
gboolean
canvas_in_update
=
TRUE
;
gboolean
container_need_update
=
FALSE
;
guint
item_flags
=
0
;
hooks
=
hooks_list
;
coords
[
0
]
=
x1
;
...
...
@@ -857,6 +861,25 @@ static void invoke_update_hooks(ZMapWindowContainerGroup container, GSList *hook
bounds
.
ref_count
=
1
;
bounds
.
num_points
=
2
;
item
=
(
FooCanvasItem
*
)
container
;
if
(
canvas_in_update
)
/* actually we might not want to do this. */
canvas_in_update
=
item
->
canvas
->
doing_update
;
if
(
canvas_in_update
)
{
/* Stops the g_return_if_fail(!item->cavnas->doing_update) failing!!! */
item
->
canvas
->
doing_update
=
FALSE
;
/* monkey with item->object.flags */
item_flags
=
item
->
object
.
flags
;
/* Stops us getting all the way up the tree to foo_canvas_request_update. */
if
((
container_need_update
=
((
item_flags
&
FOO_CANVAS_ITEM_NEED_UPDATE
)
==
FOO_CANVAS_ITEM_NEED_UPDATE
))
==
FALSE
)
item
->
object
.
flags
|=
FOO_CANVAS_ITEM_NEED_UPDATE
;
}
do
{
ContainerUpdateHook
update_hook
;
...
...
@@ -868,6 +891,15 @@ static void invoke_update_hooks(ZMapWindowContainerGroup container, GSList *hook
}
while
((
hooks
=
hooks
->
next
));
if
(
canvas_in_update
)
{
/* Need to reset everything */
item
->
canvas
->
doing_update
=
TRUE
;
item
->
object
.
flags
|=
item_flags
;
if
(
!
container_need_update
)
item
->
object
.
flags
&=
~
FOO_CANVAS_ITEM_NEED_UPDATE
;
}
return
;
}
...
...
@@ -935,6 +967,9 @@ static void zmap_window_container_group_update (FooCanvasItem *item, double i2w_
this_container
->
flags
.
need_cropping
=
parent_container
->
flags
.
need_cropping
;
#endif
if
(
this_container
->
flags
.
need_reposition
)
flags
|=
ZMAP_CANVAS_UPDATE_NEED_REPOSITION
;
current_x
=
parent_container
->
reposition_x
;
current_y
=
parent_container
->
reposition_y
;
}
...
...
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