@@ -14,8 +14,8 @@ module Vips
1414
1515 attach_function :vips_image_copy_memory , [ :pointer ] , :pointer
1616
17- attach_function :vips_image_set_progress , [ :pointer , :bool ] , :void
18- attach_function :vips_image_set_kill , [ :pointer , :bool ] , :void
17+ attach_function :vips_image_set_progress , [ :pointer , :int ] , :void
18+ attach_function :vips_image_set_kill , [ :pointer , :int ] , :void
1919
2020 attach_function :vips_filename_get_filename , [ :string ] , :pointer
2121 attach_function :vips_filename_get_options , [ :string ] , :pointer
@@ -716,7 +716,7 @@ def write_to_memory
716716 # @see Object#signal_connect
717717 # @param state [Boolean] progress signalling state
718718 def set_progress state
719- Vips . vips_image_set_progress self , state
719+ Vips . vips_image_set_progress ( self , state ? 1 : 0 )
720720 end
721721
722722 # Kill computation of this time.
@@ -727,7 +727,7 @@ def set_progress state
727727 # @see Object#signal_connect
728728 # @param kill [Boolean] stop computation
729729 def set_kill kill
730- Vips . vips_image_set_kill self , kill
730+ Vips . vips_image_set_kill ( self , kill ? 1 : 0 )
731731 end
732732
733733 # Get the `GType` of a metadata field. The result is 0 if no such field
0 commit comments