Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def jockey::ui::AbstractUI::main_window_text (   self  ) 

Return a tuple (heading, subtext) of main window texts.

This changes depending on whether restricted or free drivers are
used/available, thus the UI should update it whenever it changes a
handler.

Definition at line 119 of file ui.py.

00119                               :
        '''Return a tuple (heading, subtext) of main window texts.

        This changes depending on whether restricted or free drivers are
        used/available, thus the UI should update it whenever it changes a
        handler.
        '''
        proprietary_in_use = False
        proprietary_available = False

        for h in self.handlers:
            if not h.free():
                proprietary_available = True
                if h.used():
                    proprietary_in_use = True
                    break

        if proprietary_in_use:
            heading = self._('Proprietary drivers are being used to make '
                    'this computer work properly.')
        else:
            heading = self._('No proprietary drivers are in use on this system.')

        if proprietary_available:
            subtext = self._(
            # %(os)s stands for the OS name. Prefix it or suffix it,
            # but do not replace it.
            'Proprietary drivers do not have public source code that %(os)s '
            'developers are free to modify. They represent a risk to you '
            'because they are only available on the types of computer chosen by '
            'the manufacturer, and security updates to them depend solely on the '
            'responsiveness of the manufacturer. %(os)s cannot fix or improve '
            'these drivers.') % {'os': oslib.OSLib.inst.os_vendor}
        else:
            subtext = ''

        return (heading, subtext)

    def get_handler_tooltip(self, handler):


Generated by  Doxygen 1.6.0   Back to index