File: FSNBrowser.m.rej

package info (click to toggle)
gworkspace 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,124 kB
  • sloc: objc: 71,982; sh: 488; makefile: 43
file content (96 lines) | stat: -rw-r--r-- 2,640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
--- FSNode/FSNBrowser.m
+++ FSNode/FSNBrowser.m
@@ -270,50 +270,60 @@
   
   updateViewsLock++;
   
-  if ([node isEqual: baseNode] || ([node isSubnodeOfNode: baseNode] == NO)) {
-    updateViewsLock--;
-    [self setBaseNode: node];
-    [self tile];
-		[self setNeedsDisplay: YES];
-		return;
-	}
+  if ([node isEqual: baseNode] || ([node isSubnodeOfNode: baseNode] == NO))
+    {
+      updateViewsLock--;
+      [self setBaseNode: node];
+      [self tile];
+      [self setNeedsDisplay: YES];
+      return;
+    }
 
   [self loadColumnZero];
   
-  if ([[baseNode path] isEqual: path_separator()]) {
-    components = [FSNode nodeComponentsToNode: node];
-  } else {
-    components = [FSNode nodeComponentsFromNode: baseNode toNode: node];
-  }
+  if ([[baseNode path] isEqual: path_separator()])
+    {
+      components = [FSNode nodeComponentsToNode: node];
+    }
+  else
+    {
+      components = [FSNode nodeComponentsFromNode: baseNode toNode: node];
+    }
 
-  if ([components count] == 1) {
-    updateViewsLock--;
-    [self tile];
-		[self setNeedsDisplay: YES];
-		return;
-  }
+  if ([components count] == 1)
+    {
+      updateViewsLock--;
+      [self tile];
+      [self setNeedsDisplay: YES];
+      return;
+    }
 
   components = [components subarrayWithRange: NSMakeRange(1, [components count] -1)];
 
   column = lastColumnLoaded;
   
-  for (i = 0; i < [components count]; i++) {
-    FSNBrowserColumn *bc = [columns objectAtIndex: column + i];
-    FSNode *nd = [components objectAtIndex: i];
-    FSNBrowserCell *cell = [bc selectCellOfNode: nd sendAction: NO];
+  for (i = 0; i < [components count]; i++)
+    {
+      FSNBrowserColumn *bc = [columns objectAtIndex: column + i];
+      FSNode *nd = [components objectAtIndex: i];
+      FSNBrowserCell *cell = [bc selectCellOfNode: nd sendAction: NO];
 
-    if (cell) {
-      if ([cell isLeaf]) {
-        break;
-      }
-    } else {
-      NSLog(@"Browser: unable to find cell '%@' in column %ld\n", [nd name], (long int)(column + i));
-      break;
-    }
+      if (cell)
+        {
+          if ([cell isLeaf])
+            {
+              break;
+            }
+        }
+      else
+        {
+          NSLog(@"Browser: unable to find cell '%@' in column %ld\n", [nd name], (long int)(column + i));
+          break;
+        }
     
-    nd = [FSNode nodeWithRelativePath: [nd relativePath] parent: [bc shownNode]];
-    [self addAndLoadColumnForNode: nd];
-  }
+      nd = [FSNode nodeWithRelativePath: [nd relativePath] parent: [bc shownNode]];
+      [self addAndLoadColumnForNode: nd];
+    }
   
   updateViewsLock--;
   [self tile];