lib/jldrill/views/gtk/widgets/ProblemDisplay.rb in jldrill-0.5.1.7 vs lib/jldrill/views/gtk/widgets/ProblemDisplay.rb in jldrill-0.6.0.1

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 require 'jldrill/views/gtk/widgets/ProblemPane' require 'Context/Views/Gtk/Widgets/VBox' require 'jldrill/views/gtk/widgets/KanjiPopupFactory' require 'jldrill/views/gtk/widgets/VocabPopupFactory' require 'gtk2' @@ -169,7 +170,20 @@ def expandWithSavePath(filename) @context.expandWithSavePath(filename) end + def showBusy(bool) + if bool + @vpane.window.set_cursor(Gdk::Cursor.new(Gdk::Cursor::WATCH)) + self.window.set_cursor(Gdk::Cursor.new(Gdk::Cursor::WATCH)) + else + @vpane.window.set_cursor(nil) + self.window.set_cursor(nil) + end + Gdk::flush + @popupFactory.showBusy(bool) + @question.showBusy(bool) + @answer.showBusy(bool) + end end end