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

Diff of /gnustep/usr-apps/gworkspace/GWorkspace/TShelf/TShelfIcon.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 94  Line 94 
94                                                    
95        [ws getInfoForFile: fullPath application: &defApp type: &t];              [ws getInfoForFile: fullPath application: &defApp type: &t];      
96        ASSIGN (type, t);                        ASSIGN (type, t);                
97                          isPakage = [gw isPakageAtPath: fullPath];                          isPakage = [GWLib isPakageAtPath: fullPath];
98                                                    
99      } else {      } else {
100        fullPath = nil;        fullPath = nil;
# Line 106  Line 106 
106      }      }
107    
108      if (singlepath == YES) {      if (singlepath == YES) {
109        ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);            ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);    
110      } else {      } else {
111        ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);        ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);
112      }      }
# Line 188  Line 188 
188                  }                  }
189      [ws getInfoForFile: fullPath application: &defApp type: &t];            [ws getInfoForFile: fullPath application: &defApp type: &t];      
190      ASSIGN (type, t);      ASSIGN (type, t);
191                  isPakage = [gw isPakageAtPath: fullPath];                  isPakage = [GWLib isPakageAtPath: fullPath];
192    } else {    } else {
193      TEST_RELEASE (fullPath);      TEST_RELEASE (fullPath);
194      fullPath = nil;      fullPath = nil;
# Line 200  Line 200 
200    }    }
201    
202    if (singlepath == YES) {    if (singlepath == YES) {
203      ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);          ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);    
204    } else {    } else {
205      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);
206    }    }
# Line 270  Line 270 
270  - (void)renewIcon  - (void)renewIcon
271  {  {
272    if (singlepath == YES) {    if (singlepath == YES) {
273      ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);          ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);    
274    } else {    } else {
275      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);      ASSIGN (icon, [NSImage imageNamed: @"MultipleSelection.tiff"]);
276    }    }
# Line 659  Line 659 
659    if(isDragTarget == YES) {    if(isDragTarget == YES) {
660      isDragTarget = NO;      isDragTarget = NO;
661      if (onSelf == NO) {            if (onSelf == NO) {      
662        ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);        ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);
663        [self setNeedsDisplay: YES];        [self setNeedsDisplay: YES];
664      }      }
665      onSelf = NO;      onSelf = NO;
# Line 693  Line 693 
693      return;      return;
694    }    }
695        
696    ASSIGN (icon, [gw iconForFile: fullPath ofType: type]);    ASSIGN (icon, [GWLib iconForFile: fullPath ofType: type]);
697    [self setNeedsDisplay: YES];    [self setNeedsDisplay: YES];
698    
699          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