SF-TOGGLE type?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Should SF-TOGGLE be evaluated as a boolean or int in a scheme script?

I have been using  (if (= inToggle TRUE) (do-true) (do-false)) where
inToggle is a toggle (check box) parameter,

Because (if inToggle (do-true) (do-false)) always returns as true.

-Rob A.


On 12/17/08, Pablo Yaggi <pyaggi@xxxxxxxxxxxxxxx> wrote:
> Working with gimp 2.6 this segment of codes
>
> 	    (if (= (car (gimp-drawable-is-rgb image)) FALSE)
> 	      (gimp-image-convert-rgb image)
> 	    )
>
> gives me this error
>
>
>          Error while executing script-fu-mirror-table:
>
>          Error: Procedure execution of gimp-image-convert-rgb failed on
> invalid input arguments: Image 'file:///home/pablo/glam.jpg' (1) is already
> of
> type 'rgb'
>
> Bests,
> Pablo
>
>
> (Martin told me my font was too small, is it right now ? )
>
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux