--- a/Cairo__ClockView.st Fri Jan 09 16:15:59 2015 +0000
+++ b/Cairo__ClockView.st Fri Feb 12 16:36:39 2016 +0000
@@ -38,6 +38,7 @@
super mapped.
"Created: / 17-06-2012 / 22:40:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 12-02-2016 / 16:40:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
unmapped
@@ -46,6 +47,27 @@
super unmapped.
"Created: / 17-06-2012 / 22:42:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 12-02-2016 / 16:40:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!ClockView methodsFor:'initialization & release'!
+
+initializeForDevice:aDevice
+ "allocate a GraphicsContext for a device"
+
+ aDevice notNil ifTrue:[
+ gc := Cairo::GraphicsContext onDevice: aDevice
+ ] ifFalse:[
+ "should not be reached"
+ GraphicsMedium superclass == DeviceGraphicsContext ifTrue:[
+ gc := self.
+ super device:aDevice.
+ ].
+ ].
+
+ self initialize.
+
+ "Created: / 12-02-2016 / 16:00:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!ClockView methodsFor:'redrawing'!
@@ -159,7 +181,7 @@
cr restore.
"Created: / 27-12-2014 / 00:00:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 01-01-2015 / 12:11:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 12-02-2016 / 16:45:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!ClockView class methodsFor:'documentation'!