(self, widget)
return(True)
Handle the closure of a terminal
Handle the closure of a terminal
Handle the closure of a terminal
def closeterm(self, widget):
        """Handle the closure of a terminal"""
        try:
            if self.get_property('term_zoomed'):
                # We're zoomed, so unzoom and then start closing again
                dbg('Container::closeterm: terminal zoomed, unzooming')
                self.unzoom(widget)
                widget.close()
                return(True)
        except TypeError:
            pass

        if not self.remove(widget):
            dbg('Container::closeterm: self.remove() failed for %s' % widget)
            return(False)

        self.terminator.deregister_terminal(widget)
        widget.close()
        self.terminator.group_hoover()
        return(True)
def closeterm ( self , widget ) : try : if self . get_property ( 'term_zoomed' ) : # We're zoomed, so unzoom and then start closing again dbg ( 'Container::closeterm: terminal zoomed, unzooming' ) self . unzoom ( widget ) widget . close ( ) return ( True ) except TypeError : pass if not self . remove ( widget ) : dbg ( 'Container::closeterm: self.remove() failed for %s' % widget ) return ( False ) self . terminator . deregister_terminal ( widget ) widget . close ( ) self . terminator . group_hoover ( ) return ( True )