Removed unused handlers
authorjaviplx <javiplx@gmail.com>
Fri, 4 Jun 2010 11:58:46 +0000 (11:58 +0000)
committerjaviplx <javiplx@gmail.com>
Fri, 4 Jun 2010 11:58:46 +0000 (11:58 +0000)
git-svn-id: file:///svnroot/wifihood/trunk/wifiscanner@11 c51dfc6a-5949-4919-9c8e-f207a149c383

wifiview

index f1fcda2..40a7a8c 100755 (executable)
--- a/wifiview
+++ b/wifiview
@@ -229,20 +229,7 @@ class ZoomDialog ( gtk.Dialog ) :
 
 class MapWindow:
 
-    def delete_event(self, widget, event, data=None):
-        # If you return FALSE in the "delete_event" signal handler,
-        # GTK will emit the "destroy" signal. Returning TRUE means
-        # you don't want the window to be destroyed.
-        # This is useful for popping up 'are you sure you want to quit?'
-        # type dialogs.
-        print "delete event occurred"
-
-        # Change FALSE to TRUE and the main window will not be destroyed
-        # with a "delete_event".
-        return False
-
     def destroy(self, widget, data=None):
-        print "destroy signal occurred"
         gtk.main_quit()
 
     def press_event ( self, widget, event, *args ) :
@@ -298,7 +285,6 @@ class MapWindow:
 
         self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
     
-        self.window.connect("delete_event", self.delete_event)
         self.window.connect("destroy", self.destroy)
 
         self.window.set_border_width(10)