- Allow raw devices to be changed.
This commit is contained in:
parent
38211e3ebf
commit
2b4fad8d01
24
system-config-printer-raw-device-change.patch
Normal file
24
system-config-printer-raw-device-change.patch
Normal file
@ -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)
|
@ -7,7 +7,7 @@
|
|||||||
Summary: A printer administration tool
|
Summary: A printer administration tool
|
||||||
Name: system-config-printer
|
Name: system-config-printer
|
||||||
Version: 1.1.12
|
Version: 1.1.12
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://cyberelk.net/tim/software/system-config-printer/
|
URL: http://cyberelk.net/tim/software/system-config-printer/
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -20,6 +20,7 @@ Patch3: system-config-printer-icon-load-traceback.patch
|
|||||||
Patch4: system-config-printer-polkit-1.patch
|
Patch4: system-config-printer-polkit-1.patch
|
||||||
Patch5: system-config-printer-proxy-auth.patch
|
Patch5: system-config-printer-proxy-auth.patch
|
||||||
Patch6: system-config-printer-ppdippstr.patch
|
Patch6: system-config-printer-ppdippstr.patch
|
||||||
|
Patch7: system-config-printer-raw-device-change.patch
|
||||||
|
|
||||||
BuildRequires: cups-devel >= 1.2
|
BuildRequires: cups-devel >= 1.2
|
||||||
BuildRequires: python-devel >= 2.4
|
BuildRequires: python-devel >= 2.4
|
||||||
@ -87,6 +88,7 @@ printers.
|
|||||||
%patch4 -p1 -b .polkit-1
|
%patch4 -p1 -b .polkit-1
|
||||||
%patch5 -p1 -b .proxy-auth
|
%patch5 -p1 -b .proxy-auth
|
||||||
%patch6 -p1 -b .ppdippstr
|
%patch6 -p1 -b .ppdippstr
|
||||||
|
%patch7 -p1 -b .raw-device-change
|
||||||
|
|
||||||
%build
|
%build
|
||||||
aclocal
|
aclocal
|
||||||
@ -201,6 +203,9 @@ rm -rf %buildroot
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 3 2009 Tim Waugh <twaugh@redhat.com> 1.1.12-7
|
||||||
|
- Allow raw devices to be changed.
|
||||||
|
|
||||||
* Fri Aug 28 2009 Tim Waugh <twaugh@redhat.com> 1.1.12-6
|
* Fri Aug 28 2009 Tim Waugh <twaugh@redhat.com> 1.1.12-6
|
||||||
- Fixed PPD/IPP string translation.
|
- Fixed PPD/IPP string translation.
|
||||||
- Fixed proxy authentication.
|
- Fixed proxy authentication.
|
||||||
|
Loading…
Reference in New Issue
Block a user