From 1fcc63811b36af0b1f30cddbee7f56019f3134d5 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 26 Mar 2010 12:53:25 +0000 Subject: [PATCH] - More async traceback fixes (Ubuntu #547075). --- ...em-config-printer-asyncipp-traceback.patch | 29 ++++++++++++------- system-config-printer.spec | 5 +++- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/system-config-printer-asyncipp-traceback.patch b/system-config-printer-asyncipp-traceback.patch index 61fa4cc..e44b30c 100644 --- a/system-config-printer-asyncipp-traceback.patch +++ b/system-config-printer-asyncipp-traceback.patch @@ -1,6 +1,6 @@ diff -up system-config-printer-1.2.0/asyncipp.py.asyncipp-traceback system-config-printer-1.2.0/asyncipp.py ---- system-config-printer-1.2.0/asyncipp.py.asyncipp-traceback 2010-03-26 10:26:00.420734896 +0000 -+++ system-config-printer-1.2.0/asyncipp.py 2010-03-26 10:26:03.187725661 +0000 +--- system-config-printer-1.2.0/asyncipp.py.asyncipp-traceback 2010-03-26 12:50:39.829627667 +0000 ++++ system-config-printer-1.2.0/asyncipp.py 2010-03-26 12:50:51.888627367 +0000 @@ -59,6 +59,7 @@ class _IPPConnectionThread(threading.Thr self._auth_handler = auth_handler self._auth_queue = Queue.Queue (1) @@ -17,28 +17,35 @@ diff -up system-config-printer-1.2.0/asyncipp.py.asyncipp-traceback system-confi del self._conn # already destroyed del self._reply_handler del self._error_handler -@@ -189,18 +191,20 @@ class _IPPConnectionThread(threading.Thr +@@ -188,21 +190,23 @@ class _IPPConnectionThread(threading.Thr + return password def _reply (self, result): - def send_reply (result): +- def send_reply (result): - self._reply_handler (self._conn, result) -+ if not self._destroyed and self._reply_handler: -+ self._reply_handler (self._conn, result) ++ def send_reply (handler, result): ++ if not self._destroyed: ++ handler (self._conn, result) return False - if self._reply_handler: +- gobject.idle_add (send_reply, result) + if not self._destroyed and self._reply_handler: - gobject.idle_add (send_reply, result) ++ gobject.idle_add (send_reply, self._reply_handler, result) def _error (self, exc): - def send_error (exc): +- def send_error (exc): - self._error_handler (self._conn, exc) -+ if not self._destroyed and self._error_handler: -+ self._error_handler (self._conn, exc) ++ def send_error (handler, exc): ++ if not self._destroyed: ++ handler (self._conn, exc) return False - if self._error_handler: + if not self._destroyed and self._error_handler: debugprint ("Add %s to idle" % self._error_handler) - gobject.idle_add (send_error, exc) +- gobject.idle_add (send_error, exc) ++ gobject.idle_add (send_error, self._error_handler, exc) + ### + ### This is the user-visible class. Although it does not inherit from diff --git a/system-config-printer.spec b/system-config-printer.spec index 6e9abe3..5bad9b6 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.2.0 -Release: 10%{?dist} +Release: 11%{?dist} License: GPLv2+ URL: http://cyberelk.net/tim/software/system-config-printer/ Group: System Environment/Base @@ -258,6 +258,9 @@ rm -rf %buildroot exit 0 %changelog +* Fri Mar 26 2010 Tim Waugh - 1.2.0-11 +- More async traceback fixes (Ubuntu #547075). + * Fri Mar 26 2010 Tim Waugh - 1.2.0-10 - Better inklevel 25/50/75 markers. - Fixed window transience for 'Change Device URI'.