(self, checkbutton)
Cursor: Use default colors changed
Cursor: Use default colors changed
Cursor : Use default colors changed
def on_cursor_color_default_checkbutton_toggled(self, checkbutton):
        """Cursor: Use default colors changed"""
        guiget = self.builder.get_object

        value = checkbutton.get_active()
        guiget('cursor_fg_color').set_sensitive(not value)
        guiget('cursor_bg_color').set_sensitive(not value)

        if not value:
            self.config['cursor_fg_color'] = color2hex(guiget('cursor_fg_color'))
            self.config['cursor_bg_color'] = color2hex(guiget('cursor_bg_color'))
            self.config.save()

        self.config['cursor_color_default'] = value
        self.config.save()
def on_cursor_color_default_checkbutton_toggled ( self , checkbutton ) : guiget = self . builder . get_object value = checkbutton . get_active ( ) guiget ( 'cursor_fg_color' ) . set_sensitive ( not value ) guiget ( 'cursor_bg_color' ) . set_sensitive ( not value ) if not value : self . config [ 'cursor_fg_color' ] = color2hex ( guiget ( 'cursor_fg_color' ) ) self . config [ 'cursor_bg_color' ] = color2hex ( guiget ( 'cursor_bg_color' ) ) self . config . save ( ) self . config [ 'cursor_color_default' ] = value self . config . save ( )