From 2b4fad8d014fba425b40425bbba5c52827df4e12 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 3 Sep 2009 16:42:32 +0000 Subject: [PATCH] - Allow raw devices to be changed. --- system-config-printer-raw-device-change.patch | 24 +++++++++++++++++++ system-config-printer.spec | 7 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 system-config-printer-raw-device-change.patch diff --git a/system-config-printer-raw-device-change.patch b/system-config-printer-raw-device-change.patch new file mode 100644 index 0000000..c20d0f4 --- /dev/null +++ b/system-config-printer-raw-device-change.patch @@ -0,0 +1,24 @@ +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) diff --git a/system-config-printer.spec b/system-config-printer.spec index 0fd2ea0..e0eb150 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -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 @@ -20,6 +20,7 @@ Patch3: system-config-printer-icon-load-traceback.patch Patch4: system-config-printer-polkit-1.patch Patch5: system-config-printer-proxy-auth.patch Patch6: system-config-printer-ppdippstr.patch +Patch7: system-config-printer-raw-device-change.patch BuildRequires: cups-devel >= 1.2 BuildRequires: python-devel >= 2.4 @@ -87,6 +88,7 @@ printers. %patch4 -p1 -b .polkit-1 %patch5 -p1 -b .proxy-auth %patch6 -p1 -b .ppdippstr +%patch7 -p1 -b .raw-device-change %build aclocal @@ -201,6 +203,9 @@ rm -rf %buildroot exit 0 %changelog +* Thu Sep 3 2009 Tim Waugh 1.1.12-7 +- Allow raw devices to be changed. + * Fri Aug 28 2009 Tim Waugh 1.1.12-6 - Fixed PPD/IPP string translation. - Fixed proxy authentication.