[Libguestfs] [PATCH 22/61] P2V: main - add fake Gtk.main_quit

Maros Zatko mzatko at redhat.com
Wed Feb 12 14:30:34 UTC 2014


---
 p2v/client/lib/virt-p2v/ui/main.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/p2v/client/lib/virt-p2v/ui/main.rb b/p2v/client/lib/virt-p2v/ui/main.rb
index a19520b..361f6ed 100644
--- a/p2v/client/lib/virt-p2v/ui/main.rb
+++ b/p2v/client/lib/virt-p2v/ui/main.rb
@@ -64,6 +64,10 @@ module Gtk
       block.call
     end
   end
+
+  def Gtk.main_quit
+    exit(0)
+  end
 end
 
 module Gdk
-- 
1.8.3.1




More information about the Libguestfs mailing list