24 |
|
|
25 |
#include <Foundation/Foundation.h> |
#include <Foundation/Foundation.h> |
26 |
#include <AppKit/AppKit.h> |
#include <AppKit/AppKit.h> |
27 |
|
#include "GWLib.h" |
28 |
#include "GWProtocol.h" |
#include "GWProtocol.h" |
29 |
#include "GWFunctions.h" |
#include "GWFunctions.h" |
30 |
#include "GWNotifications.h" |
#include "GWNotifications.h" |
94 |
self = [super init]; |
self = [super init]; |
95 |
|
|
96 |
if (self) { |
if (self) { |
|
#ifdef GNUSTEP |
|
|
Class gwclass = [[NSBundle mainBundle] principalClass]; |
|
|
#else |
|
|
Class gwclass = [[NSBundle mainBundle] classNamed: @"GWorkspace"]; |
|
|
#endif |
|
97 |
NSRect rect = NSMakeRect(0, 0, 600, 200); |
NSRect rect = NSMakeRect(0, 0, 600, 200); |
98 |
NSSize bs = BEZEL_BORDER_SIZE; |
NSSize bs = BEZEL_BORDER_SIZE; |
99 |
int i; |
int i; |
112 |
|
|
113 |
setPathsSel = @selector(setCurrentPaths:); |
setPathsSel = @selector(setCurrentPaths:); |
114 |
setPaths = [[BColumn class] instanceMethodForSelector: setPathsSel]; |
setPaths = [[BColumn class] instanceMethodForSelector: setPathsSel]; |
|
|
|
|
gworkspace = (id<GWProtocol>)[gwclass gworkspace]; |
|
115 |
|
|
116 |
[self setFrame: rect]; |
[self setFrame: rect]; |
117 |
visibleColumns = vcols; |
visibleColumns = vcols; |
822 |
NSString *cpath = [col currentPath]; |
NSString *cpath = [col currentPath]; |
823 |
BOOL is_dir = NO; |
BOOL is_dir = NO; |
824 |
|
|
825 |
is_dir = [gworkspace existsAndIsDirectoryFileAtPath: cpath]; |
is_dir = [GWLib existsAndIsDirectoryFileAtPath: cpath]; |
826 |
|
|
827 |
if (is_dir) { |
if (is_dir) { |
828 |
if (([gworkspace isPakageAtPath: cpath] == NO) |
if (([GWLib isPakageAtPath: cpath] == NO) |
829 |
|| (styleMask & GWViewsPaksgesMask)) { |
|| (styleMask & GWViewsPaksgesMask)) { |
830 |
return cpath; |
return cpath; |
831 |
} else if (i > 0) { |
} else if (i > 0) { |