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

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

Check for a composite-providing X.org driver.

If one is available and not installed, offer to install it and return
True. Otherwise return False.

Definition at line 418 of file ui.py.

00418                              :
        '''Check for a composite-providing X.org driver.

        If one is available and not installed, offer to install it and return
        True. Otherwise return False.
        '''

        for h in self.handlers:
            if isinstance(h, xorg_driver.XorgDriverHandler) and \
                h.supports_composite():
                if h.enabled():
                    print >> sys.stderr, self._('Driver "%s" is already enabled and supports the composite extension.') % h.name()
                    return False
                else:
                    oslib.OSLib.inst.open_app(self, ['--confirm', '--enable', h.id()])
                    return True

        print >> sys.stderr, self._('There is no available graphics driver for your system which supports the composite extension.')
        return False

    def update_driverdb(self):


Generated by  Doxygen 1.6.0   Back to index