class: DiffTextView
authorStefan Vogel <sv@exept.de>
Tue, 18 Feb 2014 15:30:56 +0100
changeset 13954 2f695adffde6
parent 13953 90aee47ef256
child 13955 b509f1d7df80
class: DiffTextView changed: #initStyle access device via message send
DiffTextView.st
--- a/DiffTextView.st	Tue Feb 18 15:20:48 2014 +0100
+++ b/DiffTextView.st	Tue Feb 18 15:30:56 2014 +0100
@@ -245,7 +245,7 @@
 
     showSeparators := false.
 
-    (useColors := device hasColors) ifTrue:[
+    (useColors := self graphicsDevice hasColors) ifTrue:[
         addedColor := Color white.
         addedBgColor := Color red.
 
@@ -260,7 +260,7 @@
     ] ifFalse:[
         showSeparators := true.
 
-        (useColors := device hasGreyscales) ifTrue:[
+        (useColors := self graphicsDevice hasGreyscales) ifTrue:[
             addedBgColor := removedBgColor := changedBgColor := Color grey:80.
             addedColor := removedColor := changedColor := Color black.
         ] ifFalse:[
@@ -661,10 +661,10 @@
 !DiffTextView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/DiffTextView.st,v 1.62 2014-02-05 13:29:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/DiffTextView.st,v 1.63 2014-02-18 14:30:56 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/DiffTextView.st,v 1.62 2014-02-05 13:29:29 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/DiffTextView.st,v 1.63 2014-02-18 14:30:56 stefan Exp $'
 ! !