lib/Context/Views/Gtk/Widgets/MainWindow.rb in jldrill-0.5.1.7 vs lib/Context/Views/Gtk/Widgets/MainWindow.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,5 +1,6 @@
+# encoding: utf-8
require 'gtk2'
module Context::Gtk
# A Gtk widget representing a main window.
@@ -63,8 +64,17 @@
end
# Remove the contained widget from this window
def gtkRemoveWidget(widget)
remove(widget)
+ end
+
+ def showBusy(bool)
+ if bool
+ self.window.set_cursor(Gdk::Cursor.new(Gdk::Cursor::WATCH))
+ else
+ self.window.set_cursor(nil)
+ end
+ Gdk::flush
end
end
end