ports/59432: Maintainer update: deskutils/gdesklets, fix the threads.

Jeremy Messenger mezz7 at cox.net
Tue Nov 18 20:00:39 UTC 2003


>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 at 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 at 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:



More information about the freebsd-ports-bugs mailing list