[clocks] Fix NewAlarmDialog to not quit the Gtk mainloop



commit 470d7e96f8d0abb3674ba89b5f546bd1e8beff0a
Author: Seif Lotfy <seif lotfy com>
Date:   Wed Jun 13 22:39:22 2012 +0200

    Fix NewAlarmDialog to not quit the Gtk mainloop

 widgets.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/widgets.py b/widgets.py
index 500636a..a6c6d8e 100644
--- a/widgets.py
+++ b/widgets.py
@@ -338,7 +338,7 @@ class NewAlarmDialog (Gtk.Dialog):
       
     def on_response(self, widget, id):
         if id == 0:
-            Gtk.main_quit()
+            self.destroy ()
         if id == 1:
             name = self.entry.get_text()  #Perfect
             time = self.hourselect.get_value_as_int() * 60 * 60 +     self.minuteselect.get_value_as_int() * 60



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]