Catch KeyboardInterrupt Exception 1.2.0.20091225
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 25 Dec 2009 00:33:11 +0000 (08:33 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Fri, 25 Dec 2009 00:33:11 +0000 (08:33 +0800)
ui/gtk/main.py

index c38b47f..7b38427 100644 (file)
@@ -63,7 +63,10 @@ class UIApplication:
         self.__notify.show()
 
     def run(self):
-        gtk.main()
+        try:
+            gtk.main()
+        except KeyboardInterrupt:
+            pass
 
 def launch_panel():
     # gtk.settings_get_default().props.gtk_theme_name = "/home/phuang/.themes/aud-Default/gtk-2.0/gtkrc"