~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
012aaa9
)
More consistent code layout
author
Richard Kettlewell
<rjk@greenend.org.uk>
Wed, 18 Nov 2009 11:13:04 +0000
(11:13 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Wed, 18 Nov 2009 11:13:04 +0000
(11:13 +0000)
disobedience/autoscroll.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/autoscroll.c
b/disobedience/autoscroll.c
index
bfe71c1
..
2b24699
100644
(file)
--- 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);