def update_auto_scroll_mode(self):
        """ Register or un-register signals for follow mode """
        if self._enables['CONSOLE_FOLLOW_LOGGING']:
            if self._auto_scroll_handler_id is None:
                self._auto_scroll_handler_id = self.text_view.connect("size-allocate", self._auto_scroll)
        else:
            if self._auto_scroll_handler_id is not None:
                self.text_view.disconnect(self._auto_scroll_handler_id)
                self._auto_scroll_handler_id = None
def update_auto_scroll_mode ( self ) : if self . _enables [ 'CONSOLE_FOLLOW_LOGGING' ] : if self . _auto_scroll_handler_id is None : self . _auto_scroll_handler_id = self . text_view . connect ( "size-allocate" , self . _auto_scroll ) else : if self . _auto_scroll_handler_id is not None : self . text_view . disconnect ( self . _auto_scroll_handler_id ) self . _auto_scroll_handler_id = None
Register or un-register signals for follow mode