lib/rabbit/front.rb in rabbit-2.1.9 vs lib/rabbit/front.rb in rabbit-2.2.0
- old
+ new
@@ -154,12 +154,12 @@
end
def _check_dirty
if dirty?
clean
- if off_screen_canvas.need_reload_source?
- off_screen_canvas.reload_source
+ if offscreen_canvas.need_reload_source?
+ offscreen_canvas.reload_source
synchronize
end
end
end
@@ -169,23 +169,23 @@
index = @canvas.current_index
if @images[index].nil?
prev_size = [@previous_width, @previous_height]
current_size = [@canvas.width, @canvas.height]
if prev_size != current_size
- off_screen_canvas.reload_theme
+ offscreen_canvas.reload_theme
end
- pixbuf = off_screen_canvas.to_pixbuf(index)
+ pixbuf = offscreen_canvas.to_pixbuf(index)
@images[index] = pixbuf.save_to_buffer(@image_type)
synchronize
end
end
end
def dirty?
@dirty or
@last_modified < @canvas.last_modified or
- off_screen_canvas.need_reload_source?
+ offscreen_canvas.need_reload_source?
end
def synchronize
@last_modified = @canvas.last_modified
@previous_width = @canvas.width
@@ -231,20 +231,20 @@
end
end
end
def clean
- @off_screen_canvas = nil
+ @offscreen_canvas = nil
@dirty = false
@images = []
@last_modified = @canvas.last_modified
end
def dirty!
@dirty = true
end
- def off_screen_canvas
- @off_screen_canvas ||= @canvas.off_screen_canvas
+ def offscreen_canvas
+ @offscreen_canvas ||= @canvas.offscreen_canvas
end
end
end