(self, checkbox)
Toggling the title_use_system_font checkbox needs to alter the
        sensitivity of the font selector
Toggling the title_use_system_font checkbox needs to alter the
        sensitivity of the font selector
Toggling the title_use_system_font checkbox needs to alter the sensitivity of the font selector
def on_title_system_font_checkbutton_toggled(self, checkbox):
        """Toggling the title_use_system_font checkbox needs to alter the
        sensitivity of the font selector"""
        guiget = self.builder.get_object
        widget = guiget('title_font_selector')
        value = checkbox.get_active()

        widget.set_sensitive(not value)
        self.config['title_use_system_font'] = value
        self.config.save()

        if self.config['title_use_system_font'] == True:
            fontname = self.config.get_system_prop_font()
            if fontname is not None:
                widget.set_font_name(fontname)
        else:
            widget.set_font_name(self.config['title_font'])
def on_title_system_font_checkbutton_toggled ( self , checkbox ) : guiget = self . builder . get_object widget = guiget ( 'title_font_selector' ) value = checkbox . get_active ( ) widget . set_sensitive ( not value ) self . config [ 'title_use_system_font' ] = value self . config . save ( ) if self . config [ 'title_use_system_font' ] == True : fontname = self . config . get_system_prop_font ( ) if fontname is not None : widget . set_font_name ( fontname ) else : widget . set_font_name ( self . config [ 'title_font' ] )