151
|
1 |
'From Smalltalk/X, Version:2.10.5 on 25-may-1995 at 7:37:38 am'!
|
|
2 |
|
|
3 |
DeviceHandle subclass:#DeviceViewHandle
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Graphics-Support'
|
|
8 |
!
|
|
9 |
|
|
10 |
!DeviceViewHandle methodsFor:'finalization'!
|
|
11 |
|
|
12 |
disposed
|
|
13 |
"the view for which I am a handle was collected
|
|
14 |
- release system resources"
|
|
15 |
|
|
16 |
drawableId notNil ifTrue:[
|
|
17 |
gcId notNil ifTrue:[
|
|
18 |
device destroyGC:gcId.
|
|
19 |
gcId := nil.
|
|
20 |
].
|
|
21 |
device destroyView:self withId:drawableId.
|
|
22 |
drawableId := nil.
|
|
23 |
].
|
|
24 |
|
|
25 |
|
|
26 |
! !
|
|
27 |
|