code: def register_view(self, view):
          
  
          # if stand-alone, connects the window delete event to
          # kill the loop
          if self.view.is_stand_alone():
              import gtk
              self.view.get_top_widget().connect('delete-event',
                   lambda w,e: gtk.main_quit())
              pass
          
          return
docs: Creates treeview columns, and connect missing signals