diff --git a/system-config-printer-device-settings.patch b/system-config-printer-device-settings.patch new file mode 100644 index 0000000..a0581d4 --- /dev/null +++ b/system-config-printer-device-settings.patch @@ -0,0 +1,19 @@ +diff -up system-config-printer-1.1.91/system-config-printer.py.device-settings system-config-printer-1.1.91/system-config-printer.py +--- system-config-printer-1.1.91/system-config-printer.py.device-settings 2010-02-08 17:31:21.000000000 +0000 ++++ system-config-printer-1.1.91/system-config-printer.py 2010-02-11 17:18:45.101708282 +0000 +@@ -5049,11 +5049,13 @@ class NewPrinterGUI(GtkGUI): + iter = model.iter_next (iter) + i += 1 + elif not self.device_selected: ++ # Select the device. + column = self.tvNPDevices.get_column (0) + self.tvNPDevices.set_cursor ((0,), column) + +- column = self.tvNPDeviceURIs.get_column (0) +- self.tvNPDeviceURIs.set_cursor (connection_select_path, column) ++ # Select the connection. ++ column = self.tvNPDeviceURIs.get_column (0) ++ self.tvNPDeviceURIs.set_cursor (connection_select_path, column) + + def on_entNPTDevice_changed(self, entry): + self.setNPButtons() diff --git a/system-config-printer.spec b/system-config-printer.spec index b74d247..be99460 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.91 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: http://cyberelk.net/tim/software/system-config-printer/ Group: System Environment/Base @@ -16,6 +16,7 @@ Source1: http://cyberelk.net/tim/data/pycups/pycups-%{pycups_version}.tar.bz2 Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2 Patch1: system-config-printer-no-epydoc.patch +Patch2: system-config-printer-device-settings.patch BuildRequires: cups-devel >= 1.2 BuildRequires: python-devel >= 2.4 @@ -75,6 +76,7 @@ printers. %prep %setup -q -a 1 -a 2 %patch1 -p1 -b .no-epydoc +%patch2 -p1 -b .device-settings %build %configure --with-udev-rules --with-polkit-1 @@ -190,6 +192,9 @@ rm -rf %buildroot exit 0 %changelog +* Thu Feb 11 2010 Tim Waugh - 1.1.91-2 +- Avoid clearing device settings when adding printer (bug #563989). + * Mon Feb 8 2010 Tim Waugh - 1.1.91-1 - 1.1.91. - No longer requires usermode (bug #562270).