@@ -14,8 +14,8 @@ module Vips
14
14
15
15
attach_function :vips_image_copy_memory , [ :pointer ] , :pointer
16
16
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
19
19
20
20
attach_function :vips_filename_get_filename , [ :string ] , :pointer
21
21
attach_function :vips_filename_get_options , [ :string ] , :pointer
@@ -716,7 +716,7 @@ def write_to_memory
716
716
# @see Object#signal_connect
717
717
# @param state [Boolean] progress signalling state
718
718
def set_progress state
719
- Vips . vips_image_set_progress self , state
719
+ Vips . vips_image_set_progress ( self , state ? 1 : 0 )
720
720
end
721
721
722
722
# Kill computation of this time.
@@ -727,7 +727,7 @@ def set_progress state
727
727
# @see Object#signal_connect
728
728
# @param kill [Boolean] stop computation
729
729
def set_kill kill
730
- Vips . vips_image_set_kill self , kill
730
+ Vips . vips_image_set_kill ( self , kill ? 1 : 0 )
731
731
end
732
732
733
733
# Get the `GType` of a metadata field. The result is 0 if no such field
0 commit comments