From e07418c450a80fd9c95c410844af55d23ee82cb2 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Wed, 18 Nov 2009 11:13:04 +0000 Subject: [PATCH] More consistent code layout Organization: Straylight/Edgeware From: Richard Kettlewell --- disobedience/autoscroll.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/disobedience/autoscroll.c b/disobedience/autoscroll.c index bfe71c1..2b24699 100644 --- a/disobedience/autoscroll.c +++ b/disobedience/autoscroll.c @@ -68,12 +68,11 @@ static gboolean autoscroll_timeout(gpointer data) { /* see if we are near the edge. */ offset = ty - (visible_rect.y + 2 * SCROLL_EDGE_SIZE); - if (offset > 0) - { - offset = ty - (visible_rect.y + visible_rect.height - 2 * SCROLL_EDGE_SIZE); - if (offset < 0) - return TRUE; - } + if (offset > 0) { + offset = ty - (visible_rect.y + visible_rect.height - 2 * SCROLL_EDGE_SIZE); + if (offset < 0) + return TRUE; + } GtkAdjustment *vadjustment = gtk_tree_view_get_vadjustment(tree_view); -- [mdw]