/[gnustep]/gnustep/usr-apps/gworkspace/GWorkspace/IconViewsIcon.m
ViewVC logotype

Diff of /gnustep/usr-apps/gworkspace/GWorkspace/IconViewsIcon.m

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

revision 1.2 by esersale, Mon Aug 25 17:19:14 2003 UTC revision 1.3 by esersale, Tue Sep 30 15:38:05 2003 UTC
# Line 93  Line 93 
93                                                    
94        [ws getInfoForFile: fullPath application: &defApp type: &t];              [ws getInfoForFile: fullPath application: &defApp type: &t];      
95        ASSIGN (type, t);                        ASSIGN (type, t);                
96                          isPakage = [gw isPakageAtPath: fullPath];                          isPakage = [GWLib isPakageAtPath: fullPath];
97                                                    
98      } else {      } else {
99        fullPath = nil;        fullPath = nil;
# Line 105  Line 105 
105      }      }
106    
107      if (singlepath == YES) {      if (singlepath == YES) {
108        ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);            ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);    
109      } else {      } else {
110        ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);        ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);
111      }      }
# Line 187  Line 187 
187                  }                  }
188      [ws getInfoForFile: fullPath application: &defApp type: &t];            [ws getInfoForFile: fullPath application: &defApp type: &t];      
189      ASSIGN (type, t);      ASSIGN (type, t);
190                  isPakage = [gw isPakageAtPath: fullPath];                  isPakage = [GWLib isPakageAtPath: fullPath];
191    } else {    } else {
192      TEST_RELEASE (fullPath);      TEST_RELEASE (fullPath);
193      fullPath = nil;      fullPath = nil;
# Line 199  Line 199 
199    }    }
200    
201    if (singlepath == YES) {    if (singlepath == YES) {
202      ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);          ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);    
203    } else {    } else {
204      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);
205    }    }
# Line 279  Line 279 
279  - (void)renewIcon  - (void)renewIcon
280  {  {
281    if (singlepath == YES) {    if (singlepath == YES) {
282      ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);          ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);    
283    } else {    } else {
284      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);
285    }    }
# Line 558  Line 558 
558      if ([selection count] > 1) {      if ([selection count] > 1) {
559        dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"];        dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"];
560      } else {      } else {
561        dragIcon = [gw iconForFile: fullPath ofType: type];        dragIcon = [GWLib iconForFile: fullPath ofType: type];
562      }        }  
563    } else {    } else {
564      dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"];      dragIcon = [NSImage imageNamed: @"MultipleSelection.tiff"];
# Line 726  Line 726 
726    if(isDragTarget == YES) {    if(isDragTarget == YES) {
727      isDragTarget = NO;      isDragTarget = NO;
728      if (onSelf == NO) {            if (onSelf == NO) {      
729        ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);        ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);
730        [self setNeedsDisplay: YES];        [self setNeedsDisplay: YES];
731      }      }
732      onSelf = NO;      onSelf = NO;
# Line 759  Line 759 
759      return;      return;
760    }    }
761        
762    ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);    ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);
763    [self setNeedsDisplay: YES];    [self setNeedsDisplay: YES];
764    
765          sourceDragMask = [sender draggingSourceOperationMask];            sourceDragMask = [sender draggingSourceOperationMask];  

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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