Add the official threads fix.

PR:		59432
Submitted by:	maintainer
Obtained from:	gDesklets CVS
This commit is contained in:
Joe Marcus Clarke 2003-11-18 20:04:47 +00:00
parent 1604579467
commit b8b49987e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94288
2 changed files with 9 additions and 10 deletions

View file

@ -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}

View file

@ -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()