]> TLD Linux GIT Repositories - packages/python-PIL.git/blob - python-PIL-viewer.patch
- make sane conditional, default: off
[packages/python-PIL.git] / python-PIL-viewer.patch
1 --- Imaging-1.1.7/PIL/ImageShow.py~     2009-11-01 01:44:12.000000000 +0100
2 +++ Imaging-1.1.7/PIL/ImageShow.py      2010-02-16 00:00:20.623473929 +0100
3 @@ -145,6 +145,15 @@
4      if which("display"):
5          register(DisplayViewer)
6  
7 +    class KFMClientViewer(UnixViewer):
8 +        def get_command_ex(self, file, **options):
9 +            executable = "kfmclient"
10 +            command = executable + " exec"
11 +            return command, executable
12 +
13 +    if which("kfmclient"):
14 +        register(KFMClientViewer)
15 +
16      class XVViewer(UnixViewer):
17          def get_command_ex(self, file, title=None, **options):
18              # note: xv is pretty outdated.  most modern systems have
19 --- Imaging-1.1.7/PIL/ImageShow.py~     2010-02-16 00:01:02.588251213 +0100
20 +++ Imaging-1.1.7/PIL/ImageShow.py      2010-02-16 00:09:28.693824791 +0100
21 @@ -63,7 +63,7 @@
22          if base != image.mode and image.mode != "1":
23              image = image.convert(base)
24  
25 -        self.show_image(image, **options)
26 +        return self.show_image(image, **options)
27  
28      # hook methods
29