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

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 require 'gtk2' module JLDrill::Gtk class Popup attr_reader :character, :x, :y @@ -23,8 +24,17 @@ @popup.show_all end def close @popup.destroy + end + + def showBusy(bool) + if bool + @popup.window.set_cursor(Gdk::Cursor.new(Gdk::Cursor::WATCH)) + else + @popup.window.set_cursor(nil) + end + Gdk::flush() end end end