rpms/system-config-printer/devel system-config-printer-publish-printers.patch, NONE, 1.1 system-config-printer.spec, 1.295, 1.296
Tim Waugh
twaugh at fedoraproject.org
Fri Sep 18 12:52:16 UTC 2009
- Previous message (by thread): rpms/system-config-printer/devel system-config-printer-cancel-traceback.patch, NONE, 1.1 system-config-printer.spec, 1.294, 1.295
- Next message (by thread): rpms/protobuf/devel protobuf-2.2.0-fedora-gtest.patch, NONE, 1.1 protobuf.spec, 1.7, 1.8 protobuf-2.0.2-includes.patch, 1.1, NONE protobuf-fedora-gtest.patch, 1.1, NONE protobuf-gcc-4.3.0.patch, 1.1, NONE protobuf-pkgconfig-autotools.patch, 1.1, NONE protobuf.pc.in, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: twaugh
Update of /cvs/pkgs/rpms/system-config-printer/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5780
Modified Files:
system-config-printer.spec
Added Files:
system-config-printer-publish-printers.patch
Log Message:
* Fri Sep 18 2009 Tim Waugh <twaugh at redhat.com> 1.1.13-2
- Avoid showing the publish-printers dialog when not necessary.
system-config-printer-publish-printers.patch:
system-config-printer.py | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
--- NEW FILE system-config-printer-publish-printers.patch ---
diff -up system-config-printer-1.1.13/system-config-printer.py.publish-printers system-config-printer-1.1.13/system-config-printer.py
--- system-config-printer-1.1.13/system-config-printer.py.publish-printers 2009-09-18 13:44:41.680437056 +0100
+++ system-config-printer-1.1.13/system-config-printer.py 2009-09-18 13:45:30.704315256 +0100
@@ -220,7 +220,7 @@ class GUI(GtkGUI, monitor.Watcher):
self.changed = set() # of options
self.servers = set((self.connect_server,))
- self.server_is_publishing = False
+ self.server_is_publishing = None # not known
self.devid = devid
self.focus_on_map = focus_on_map
@@ -3158,6 +3158,18 @@ class GUI(GtkGUI, monitor.Watcher):
self.cups._end_operation ()
if success and share:
+ if self.server_is_publishing == None:
+ # We haven't yet seen a server-is-sharing-printers attribute.
+ # Assuming CUPS 1.4, this means we haven't opened a
+ # properties dialog yet. Fetch the attributes now and
+ # look for it.
+ try:
+ printer.getAttributes ()
+ p = printer.other_attributes['server-is-sharing-printers']
+ self.server_is_publishing = p
+ except (cups.IPPError, KeyError):
+ pass
+
self.advise_publish ()
# For some reason CUPS doesn't give us a notification about
Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.295
retrieving revision 1.296
diff -u -p -r1.295 -r1.296
--- system-config-printer.spec 18 Sep 2009 12:43:16 -0000 1.295
+++ system-config-printer.spec 18 Sep 2009 12:52:16 -0000 1.296
@@ -17,6 +17,7 @@ Source2: http://cyberelk.net/tim/data/py
Patch1: system-config-printer-data-button-state.patch
Patch2: system-config-printer-cancel-traceback.patch
+Patch3: system-config-printer-publish-printers.patch
BuildRequires: cups-devel >= 1.2
BuildRequires: python-devel >= 2.4
@@ -79,6 +80,7 @@ printers.
%setup -q -a 1 -a 2
%patch1 -p1 -b .data-button-state
%patch2 -p1 -b .cancel-traceback
+%patch3 -p1 -b .publish-printers
%build
%configure --with-udev-rules --with-polkit-1
@@ -191,6 +193,7 @@ exit 0
%changelog
* Fri Sep 18 2009 Tim Waugh <twaugh at redhat.com> 1.1.13-2
+- Avoid showing the publish-printers dialog when not necessary.
- Fixed traceback when cancelling change-driver dialog.
- Fixed data button state.
- Previous message (by thread): rpms/system-config-printer/devel system-config-printer-cancel-traceback.patch, NONE, 1.1 system-config-printer.spec, 1.294, 1.295
- Next message (by thread): rpms/protobuf/devel protobuf-2.2.0-fedora-gtest.patch, NONE, 1.1 protobuf.spec, 1.7, 1.8 protobuf-2.0.2-includes.patch, 1.1, NONE protobuf-fedora-gtest.patch, 1.1, NONE protobuf-gcc-4.3.0.patch, 1.1, NONE protobuf-pkgconfig-autotools.patch, 1.1, NONE protobuf.pc.in, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list