# HG changeset patch # User Claus Gittinger # Date 1289997863 -3600 # Node ID fa06bc0686edd1f39c85207f1b9d272a02d7c6ac # Parent 55590c00e6d2d275a88258f35f2b148d95815478 changed: #showBusyIndication: do not make yourself dependent on a boolean diff -r 55590c00e6d2 -r fa06bc0686ed ProgressIndicator.st --- a/ProgressIndicator.st Tue Nov 16 16:26:53 2010 +0100 +++ b/ProgressIndicator.st Wed Nov 17 13:44:23 2010 +0100 @@ -886,21 +886,21 @@ "switch between percentage mode (if false) and busy indication (if true)" aBooleanHolder ~~ showBusy ifTrue:[ - showBusy notNil ifTrue:[ - showBusy removeDependent:self. - ]. - showBusy := aBooleanHolder. - showBusy addDependent:self. - (showBusy value) ifTrue:[ - self startBusyIndicationProcess. - ] ifFalse:[ - self stopBusyIndicationProcess - ]. - shown ifTrue:[self redraw] + showBusy notNil ifTrue:[ + showBusy removeDependent:self. + ]. + showBusy := aBooleanHolder. + showBusy isValueModel ifTrue:[showBusy addDependent:self]. + (showBusy value) ifTrue:[ + self startBusyIndicationProcess. + ] ifFalse:[ + self stopBusyIndicationProcess + ]. + shown ifTrue:[self redraw] ]. - "Created: / 21.10.1998 / 17:35:16 / cg" - "Modified: / 21.10.1998 / 18:03:06 / cg" + "Created: / 21-10-1998 / 17:35:16 / cg" + "Modified: / 17-11-2010 / 13:43:51 / cg" ! ! !ProgressIndicator methodsFor:'accessing-behavior'! @@ -1379,9 +1379,9 @@ !ProgressIndicator class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.61 2010-11-12 18:03:28 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.62 2010-11-17 12:44:23 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.61 2010-11-12 18:03:28 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.62 2010-11-17 12:44:23 cg Exp $' ! !