/[gnustep]/gnustep/usr-apps/gworkspace/GWLib/Browser2.m
ViewVC logotype

Diff of /gnustep/usr-apps/gworkspace/GWLib/Browser2.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by esersale, Mon Sep 29 13:20:28 2003 UTC revision 1.5 by esersale, Tue Sep 30 15:38:04 2003 UTC
# Line 24  Line 24 
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"
# Line 93  double myrintf(double a) Line 94  double myrintf(double a)
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;
# Line 116  double myrintf(double a) Line 112  double myrintf(double a)
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;
# Line 828  double myrintf(double a) Line 822  double myrintf(double a)
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) {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26