From: | "Jim Ramsay (lack)" <lack@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in rox-base/devtray/files: DevTray-0.3.2-no_pycups.patch digest-devtray-0.3.2 |
Date: | Mon, 26 Nov 2007 14:37:05 |
Message-Id: | E1Iwf51-0005OX-KN@stork.gentoo.org |
1 | lack 07/11/26 14:36:59 |
2 | |
3 | Added: DevTray-0.3.2-no_pycups.patch digest-devtray-0.3.2 |
4 | Log: |
5 | New package: DevTray is a rox panel applet which shows HAL devices. |
6 | (Portage version: 2.1.3.18) |
7 | |
8 | Revision Changes Path |
9 | 1.1 rox-base/devtray/files/DevTray-0.3.2-no_pycups.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/devtray/files/DevTray-0.3.2-no_pycups.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/devtray/files/DevTray-0.3.2-no_pycups.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: DevTray-0.3.2-no_pycups.patch |
15 | =================================================================== |
16 | --- DevTray-orig/Handlers/Printer/__init__.py 2007-09-22 02:23:04.000000000 -0400 |
17 | +++ DevTray/Handlers/Printer/__init__.py 2007-11-26 09:00:57.000000000 -0500 |
18 | @@ -78,14 +78,15 @@ |
19 | def get_printer_name(self): |
20 | if self.__cups_name != None: |
21 | return self.__cups_name |
22 | - for uri in conn.getDevices(): |
23 | - if self.__serial in uri: |
24 | - printers = conn.getPrinters() |
25 | - for name in printers: |
26 | - printer = printers[name] |
27 | - if printer['device-uri'] == uri: |
28 | - self.__cups_name = name |
29 | - return self.__cups_name |
30 | + if have_cups: |
31 | + for uri in conn.getDevices(): |
32 | + if self.__serial in uri: |
33 | + printers = conn.getPrinters() |
34 | + for name in printers: |
35 | + printer = printers[name] |
36 | + if printer['device-uri'] == uri: |
37 | + self.__cups_name = name |
38 | + return self.__cups_name |
39 | self.__cups_name = '' |
40 | return '' |
41 | |
42 | @@ -178,7 +179,6 @@ |
43 | menu_item.connect("activate", self.__add) |
44 | menu.prepend(menu_item) |
45 | |
46 | - menu.prepend(menu_item) |
47 | menu_item = g.ImageMenuItem(_("Enable")) |
48 | if info: |
49 | if info.get('printer-state', 0) == cups.IPP_PRINTER_STOPPED: |
50 | |
51 | |
52 | |
53 | 1.1 rox-base/devtray/files/digest-devtray-0.3.2 |
54 | |
55 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/devtray/files/digest-devtray-0.3.2?rev=1.1&view=markup |
56 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/rox-base/devtray/files/digest-devtray-0.3.2?rev=1.1&content-type=text/plain |
57 | |
58 | Index: digest-devtray-0.3.2 |
59 | =================================================================== |
60 | MD5 900d509e0fa67cef531bc8a5918e49b9 DevTray-0.3.2.tgz 109166 |
61 | RMD160 475a0b9a2abf3ada3803879b7a7424dd3f676aed DevTray-0.3.2.tgz 109166 |
62 | SHA256 7409e1fc52c98ce6f46723851229c95b557bda16b76bf27d7026c33a224c5d52 DevTray-0.3.2.tgz 109166 |
63 | |
64 | |
65 | |
66 | -- |
67 | gentoo-commits@g.o mailing list |