Date: Tue, 18 Nov 2003 13:31:31 -0600 (CST) From: Jeremy Messenger <mezz7@cox.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/59432: Maintainer update: deskutils/gdesklets, fix the threads. Message-ID: <200311181931.hAIJVVDN096502@ns1.mezzweb.com> Resent-Message-ID: <200311182000.hAIK0ZiL086861@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 59432 >Category: ports >Synopsis: Maintainer update: deskutils/gdesklets, fix the threads. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Nov 18 12:00:35 PST 2003 >Closed-Date: >Last-Modified: >Originator: Mezz >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD ns1.mezzweb.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 13 22:39:47 CDT 2003 mezz@mezz.mezzweb.com:/usr/obj/usr/src/sys/BSDROCKS i386 >Description: Fix a new bug when the starting two threaded desklets and it call thread more than once. Obtained from: gDesklets CVS >How-To-Repeat: n/a >Fix: --- gdesklets.diff begins here --- diff -ur gdesklets.orig/Makefile gdesklets/Makefile --- gdesklets.orig/Makefile Mon Nov 17 17:15:22 2003 +++ gdesklets/Makefile Tue Nov 18 13:31:22 2003 @@ -7,7 +7,7 @@ PORTNAME= gdesklets PORTVERSION= 0.24.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= deskutils gnome MASTER_SITES= http://www.pycage.de/download/${PORTNAME}/ DISTNAME= gDesklets-${PORTVERSION} diff -ur gdesklets.orig/files/patch-sensor::Sensor.py gdesklets/files/patch-sensor::Sensor.py --- gdesklets.orig/files/patch-sensor::Sensor.py Mon Nov 17 16:50:46 2003 +++ gdesklets/files/patch-sensor::Sensor.py Tue Nov 18 13:34:20 2003 @@ -1,14 +1,13 @@ # Yay! Many thanks to Franz Klammer <klammer@webonaut.com>, # the theads is now work. That make a lot of desklets work now. ---- sensor/Sensor.py.orig Mon Nov 17 16:46:57 2003 -+++ sensor/Sensor.py Mon Nov 17 16:48:43 2003 -@@ -134,6 +134,8 @@ - # - def _add_thread(self, threadfunction, *args): +--- sensor/Sensor.py.orig Tue Nov 18 13:32:10 2003 ++++ sensor/Sensor.py Tue Nov 18 13:33:39 2003 +@@ -346,3 +346,7 @@ + def __on_quit(self, src): -+ gtk.threads_init() + gtk.main_quit() + - # the thread should not start before setup is complete, therefore - # we are using the GTK idle handler - def run_thread(threadfunction, args): ++ ++# FreeBSD needs this; Linux doesn't but it's cleaner to use it ++gtk.threads_init() --- gdesklets.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311181931.hAIJVVDN096502>