chiark / gitweb /
Automatically rescan when a filesystem is mounted or unmounted.
[disorder] / disobedience / autoscroll.c
index bfe71c1af0e0b867196b9b764c64c16db38d7d1a..2b246998930ec26a0cd15ef49cf7f713a0d95128 100644 (file)
@@ -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);