rpms/system-config-printer/F-11 system-config-printer-raw-device-change.patch, NONE, 1.1 system-config-printer.spec, 1.280, 1.281

Tim Waugh twaugh at fedoraproject.org
Thu Sep 3 16:37:40 UTC 2009


Author: twaugh

Update of /cvs/pkgs/rpms/system-config-printer/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10572

Modified Files:
	system-config-printer.spec 
Added Files:
	system-config-printer-raw-device-change.patch 
Log Message:
* Thu Sep  3 2009 Tim Waugh <twaugh at redhat.com> 1.1.12-7
- Allow raw devices to be changed.


system-config-printer-raw-device-change.patch:
 system-config-printer.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE system-config-printer-raw-device-change.patch ---
diff -up system-config-printer-1.1.12/system-config-printer.py.raw-device-change system-config-printer-1.1.12/system-config-printer.py
--- system-config-printer-1.1.12/system-config-printer.py.raw-device-change	2009-09-03 17:30:31.792304116 +0100
+++ system-config-printer-1.1.12/system-config-printer.py	2009-09-03 17:30:33.364303189 +0100
@@ -1906,16 +1906,16 @@ class GUI(GtkGUI, monitor.Watcher):
 
     # set buttons sensitivity
     def setDataButtonState(self):
-        try: # Might not be a printer selected
+        try:
             possible = (self.ppd and
                         not bool (self.changed) and
                         self.printer.enabled and
                         not self.printer.rejecting)
 
-            for button in [self.btnPrintTestPage,
-                           self.btnChangePPD,
+            self.btnPrintTestPage.set_sensitive (possible)
+            for button in [self.btnChangePPD,
                            self.btnSelectDevice]:
-                button.set_sensitive (possible)
+                button.set_sensitive (not bool (self.changed))
 
             commands = (self.printer.type & cups.CUPS_PRINTER_COMMANDS) != 0
             self.btnSelfTest.set_sensitive (commands and possible)


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-11/system-config-printer.spec,v
retrieving revision 1.280
retrieving revision 1.281
diff -u -p -r1.280 -r1.281
--- system-config-printer.spec	28 Aug 2009 15:55:41 -0000	1.280
+++ system-config-printer.spec	3 Sep 2009 16:37:39 -0000	1.281
@@ -7,7 +7,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 1.1.12
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -19,6 +19,7 @@ Patch2: system-config-printer-statereaso
 Patch3: system-config-printer-icon-load-traceback.patch
 Patch4: system-config-printer-proxy-auth.patch
 Patch5: system-config-printer-ppdippstr.patch
+Patch6: system-config-printer-raw-device-change.patch
 
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
@@ -72,6 +73,7 @@ the configuration tool.
 %patch3 -p1 -b .icon-load-traceback
 %patch4 -p1 -b .proxy-auth
 %patch5 -p1 -b .ppdippstr
+%patch6 -p1 -b .raw-device-change
 
 %build
 %configure
@@ -173,6 +175,9 @@ rm -rf %buildroot
 exit 0
 
 %changelog
+* Thu Sep  3 2009 Tim Waugh <twaugh at redhat.com> 1.1.12-7
+- Allow raw devices to be changed.
+
 * Fri Aug 28 2009 Tim Waugh <twaugh at redhat.com> 1.1.12-6
 - Fixed PPD/IPP string translation.
 - Fixed proxy authentication.




More information about the fedora-extras-commits mailing list