lib/rabbit/front.rb in rabbit-0.9.3 vs lib/rabbit/front.rb in rabbit-1.0.0
- old
+ new
@@ -85,11 +85,11 @@
end
def slide_title
@canvas.slide_title
end
-
+
def total_slide_number
@canvas.slide_size
end
def current_slide_number
@@ -125,13 +125,17 @@
def accept_move?
not (@public_level & Front::PublicLevel::MOVE).zero?
end
def append_comment(comment)
- @canvas.append_comment(comment)
+ GLib::Idle.add do
+ @canvas.append_comment(comment)
+ false
+ end
+ true
end
-
+
def comments
@canvas.comments
end
private
@@ -148,11 +152,11 @@
off_screen_canvas.reload_source
synchronize
end
end
end
-
+
def update_images_if_need
mon_synchronize do
_check_dirty
index = @canvas.current_index
if @images[index].nil?
@@ -183,11 +187,11 @@
def setup_public_interface
AVAILABLE_INTERFACES.each do |name, level, need_clear_cache|
arg_list = []
arg_list.concat(Utils.arg_list(@canvas.method(name).arity))
arg_str = arg_list.join(", ")
-
+
if (@public_level & level).zero?
instance_eval(<<-EOS, __FILE__, __LINE__ + 1)
def self.#{name}(#{arg_str})
raise NotAvailableInterfaceError.new(#{name.to_s.dump})
end
@@ -217,10 +221,10 @@
EOS
end
end
end
end
-
+
def clean
@off_screen_canvas = nil
@dirty = false
@images = []
@last_modified = @canvas.last_modified