Changeset 348
- Timestamp:
- 05/06/07 13:14:27 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ports/swt-3.2.1/mix/org/eclipse/swt/widgets/Widget.d
r341 r348 4 4 { 5 5 void handleEvent(Event event) { 6 if(func ) {6 if(func !is null ) { 7 7 event.cData=cData; 8 8 func(event); … … 17 17 18 18 public bool handleEvent(Object customData, int eventType, void delegate(Event) func ) { 19 if(func !is null ){19 if(func is null ){ 20 20 return false; 21 21 } … … 29 29 30 30 public bool unhandleEvent(int eventType, void delegate(Event) func) { 31 if( func !is null ){31 if( func is null ){ 32 32 return false; 33 33 } 34 34 auto a = (eventType in __handleEventListeners); 35 if( a !is null ){35 if( a is null ){ 36 36 return false; 37 37 } 38 38 auto b = ( func in *a ); 39 if( b !is null ){39 if( b is null ){ 40 40 return false; 41 41 } trunk/swt-3.2.1-win32/src/org/eclipse/swt/widgets/Widget.d
r341 r348 53 53 { 54 54 void handleEvent(Event event) { 55 if(func ) {55 if(func !is null) { 56 56 event.cData=cData; 57 57 func(event); 58 58 } 59 59 } 60 60 61 61 void delegate(Event e) func; 62 62 Object cData; … … 66 66 67 67 public bool handleEvent(Object customData, int eventType, void delegate(Event) func ) { 68 if(func !is null ){68 if(func is null ){ 69 69 return false; 70 70 } … … 78 78 79 79 public bool unhandleEvent(int eventType, void delegate(Event) func) { 80 if( func !is null ){80 if( func is null ){ 81 81 return false; 82 82 } 83 83 auto a = (eventType in __handleEventListeners); 84 if( a !is null ){84 if( a is null ){ 85 85 return false; 86 86 } 87 87 auto b = ( func in *a ); 88 if( b !is null ){88 if( b is null ){ 89 89 return false; 90 90 }
