bug in libkse? (was: Re: Fwd: Re:
gdesksets/files/patch-libdesklets::Network.py)
Alexander Leidinger
Alexander at Leidinger.net
Tue Nov 18 02:07:07 PST 2003
On Mon, 17 Nov 2003 16:32:18 -0500
Joe Marcus Clarke <marcus at marcuscom.com> wrote:
> > >> Has anyone contacted the threads people? There's either a bug in libkse
> > >> or in libc_r.
> > >
> > >
> > > No, I haven't.. I didn't know there has any bug in libkse or libc_r
> > > that cause gdesklets not work. Well, I don't know how to explain and
> > > show there's bug in libc_r or libkse. I just explain about gdesklets
> > > work a little on libkse, but not on libc_r? Also, show the code of
> > > 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.
I still think this is 'some kind of' a bug in libkse. Even if using
libkse is possible without calling threads_init() it should IMHO print
some kind of a message if it isn't called (if possible).
David, can you throw some light on this issue?
> > #
> > # Adds and runs a new thread.
> > #
> > def _add_thread(self, threadfunction, *args):
> >
> > gtk.threads_init() <== ADD THIS LINE
> >
> > # 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)
> >
> > gtk.idle_add(run_thread, threadfunction, args)
Bye,
Alexander.
--
...and that is how we know the Earth to be banana-shaped.
http://www.Leidinger.net Alexander @ Leidinger.net
GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
More information about the freebsd-gnome
mailing list