Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 16:32:18 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Franz Klammer <klammer@webonaut.com>
Cc:        Alexander Leidinger <Alexander@Leidinger.net>
Subject:   Re: Fwd: Re: gdesksets/files/patch-libdesklets::Network.py
Message-ID:  <1069104738.737.69.camel@gyros>
In-Reply-To: <3FB93BB2.7050806@webonaut.com>
References:  <3FB3CA31.20309@webonaut.com> <3FB3D047.3010701@webonaut.com> <opryle9h1z8ckrg5@smtp.central.cox.net> <20031114100638.08c69054.Alexander@Leidinger.net> <opryq7t10z8ckrg5@smtp.central.cox.net> <20031117105535.5afa6df2.Alexander@Leidinger.net> <3FB93BB2.7050806@webonaut.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-AeBaG3GknL62+snX7vWF
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2003-11-17 at 16:20, Franz Klammer wrote:
> Jeremy Messenger wrote:
>=20
> > On Mon, 17 Nov 2003 10:55:35 +0100, Alexander Leidinger=20
> > <Alexander@Leidinger.net> wrote:
> >
> >> On Sun, 16 Nov 2003 17:35:51 -0600
> >> Jeremy Messenger <mezz7@cox.net> wrote:
> >>
> >>> > some kown problems:
> >>> > - to make it run you need to activate libkse in /etc/libmap.conf
> >>>
> >>> Bummer, looks like you will have to add explain in the pkg-message=20
> >>> about
> >>> that libkse is required otherwise it won't work with libc_r.
> >>
> >>
> >> Has anyone contacted the threads people? There's either a bug in libks=
e
> >> or in libc_r.
> >
> >
> > No, I haven't.. I didn't know there has any bug in libkse or libc_r=20
> > that cause gdesklets not work. Well, I don't know how to explain and=20
> > show there's bug in libc_r or libkse. I just explain about gdesklets=20
> > work a little on libkse, but not on libc_r? Also, show the code of=20
> > SysInfo or Weather's thread?
> >
> i think i've found the problem. could someone approve this?
> to make it run, please change gdesklets/sensor/Sensor.py in this way:

That seems reasonable to me.  C applications need to do
gdk_threads_init() before using threads.

Joe

>=20
>    #
>     # Adds and runs a new thread.
>     #
>     def _add_thread(self, threadfunction, *args):
>=20
>         gtk.threads_init()       <=3D=3D ADD THIS LINE
>=20
>         # the thread should not start before setup is complete, therefore
>         # we are using the GTK idle handler
>         def run_thread(threadfunction, args):
>             thread.start_new_thread(threadfunction, args)
>=20
>         gtk.idle_add(run_thread, threadfunction, args)
>=20
>=20
> franz
>=20
> > Cheers,
> > Mezz
> >
> >> Bye,
> >> Alexander.
> >
> >
> >
--=20
PGP Key : http://www.marcuscom.com/pgp.asc



--=-AeBaG3GknL62+snX7vWF
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/uT5ib2iPiv4Uz4cRAqisAJ0Q0q9KncoWpcksfofvCGqt5p+QgACdEKru
mMlEmetn8kD7BDOXbXirq94=
=KH0w
-----END PGP SIGNATURE-----

--=-AeBaG3GknL62+snX7vWF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1069104738.737.69.camel>