DevFormH.st
changeset 151 8123ec03c52f
child 164 87eadeed8776
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DevFormH.st	Tue Jun 06 06:09:07 1995 +0200
@@ -0,0 +1,24 @@
+'From Smalltalk/X, Version:2.10.5 on 25-may-1995 at 7:37:41 am'!
+
+DeviceHandle subclass:#DeviceFormHandle
+	 instanceVariableNames:''
+	 classVariableNames:''
+	 poolDictionaries:''
+	 category:'Graphics-Support'
+!
+
+!DeviceFormHandle methodsFor:'finalization'!
+
+disposed
+    "the Form for which I am a handle has been collected - tell it to the x-server"
+
+    drawableId notNil ifTrue:[
+        gcId notNil ifTrue:[
+            device destroyGC:gcId.
+            gcId := nil
+        ].
+        device destroyPixmap:drawableId.
+        drawableId := nil
+    ]
+! !
+