diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-06-05 04:53:10 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:26 +0800 |
commit | e7954c3f251aabbf95d099159709c8c66dfedc44 (patch) | |
tree | 08b6fbba02f05aa622cd54f45da223ef43066bb3 /libgnomecanvas/gnome-canvas.c | |
parent | dcaf6c52082765c2586a7d35b56b3dc417aa988d (diff) | |
download | gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.gz gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.bz2 gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.lz gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.xz gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.tar.zst gsoc2013-evolution-e7954c3f251aabbf95d099159709c8c66dfedc44.zip |
Coding style and whitespace cleanups.
Diffstat (limited to 'libgnomecanvas/gnome-canvas.c')
-rw-r--r-- | libgnomecanvas/gnome-canvas.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c index bf4f1865be..a0ad066f44 100644 --- a/libgnomecanvas/gnome-canvas.c +++ b/libgnomecanvas/gnome-canvas.c @@ -1167,7 +1167,8 @@ gnome_canvas_item_request_update (GnomeCanvasItem *item) /* Recurse up the tree */ gnome_canvas_item_request_update (item->parent); } else { - /* Have reached the top of the tree, make sure the update call gets scheduled. */ + /* Have reached the top of the tree, make + * sure the update call gets scheduled. */ gnome_canvas_request_update (item->canvas); } } @@ -1536,7 +1537,10 @@ gnome_canvas_group_point (GnomeCanvasItem *item, for (list = g_list_last (group->item_list); list; list = list->prev) { child = list->data; - if ((child->x1 > cx) || (child->y1 > cy) || (child->x2 < cx) || (child->y2 < cy)) + if ((child->x1 > cx) || (child->y1 > cy)) + continue; + + if ((child->x2 < cx) || (child->y2 < cy)) continue; if (!(child->flags & GNOME_CANVAS_ITEM_VISIBLE)) @@ -2466,7 +2470,8 @@ pick_current_item (GnomeCanvas *canvas, GdkEvent *event) * synthesize an enter event. */ if (event != &canvas->pick_event) { - if ((event->type == GDK_MOTION_NOTIFY) || (event->type == GDK_BUTTON_RELEASE)) { + if ((event->type == GDK_MOTION_NOTIFY) || + (event->type == GDK_BUTTON_RELEASE)) { /* these fields have the same offsets in both types of events */ canvas->pick_event.crossing.type = GDK_ENTER_NOTIFY; |