(self, widget=None)
Restore normal terminal layout
Restore normal terminal layout
Restore normal terminal layout
def unzoom(self, widget=None):
        """Restore normal terminal layout"""
        if not self.is_zoomed():
            # We're not zoomed anyway
            dbg('Window::unzoom: not zoomed, no-op')
            return

        widget = self.zoom_data['widget']
        if self.zoom_data['font_scale']:
            widget.vte.set_font(self.zoom_data['old_font'])

        self.remove(widget)
        self.add(self.zoom_data['old_child'])
        self.zoom_data['old_parent'].add(widget)
        widget.grab_focus()
        self.zoom_data = None
        self.set_property('term_zoomed', False)
def unzoom ( self , widget = None ) : if not self . is_zoomed ( ) : # We're not zoomed anyway dbg ( 'Window::unzoom: not zoomed, no-op' ) return widget = self . zoom_data [ 'widget' ] if self . zoom_data [ 'font_scale' ] : widget . vte . set_font ( self . zoom_data [ 'old_font' ] ) self . remove ( widget ) self . add ( self . zoom_data [ 'old_child' ] ) self . zoom_data [ 'old_parent' ] . add ( widget ) widget . grab_focus ( ) self . zoom_data = None self . set_property ( 'term_zoomed' , False )