Re: [gtk-vnc-devel] [Q] gvncviewer with gthread
- From: "Daniel P. Berrange" <berrange redhat com>
- To: Jonh Wendell <jwendell gnome org>
- Cc: gtk-vnc-devel lists sourceforge net
- Subject: Re: [gtk-vnc-devel] [Q] gvncviewer with gthread
- Date: Thu, 7 Feb 2008 01:25:32 +0000
On Wed, Feb 06, 2008 at 10:16:44PM -0300, Jonh Wendell wrote:
> Em Seg, 2008-02-04 às 21:52 -0600, Anthony Liguori escreveu:
> > Hi Atsushi,
> >
> > Atsushi SAKAI wrote:
> > > Hi, Anthony
> > >
> > > I have a question about Authenication window
> > > in sample program gvncviewer with gthread.
> > >
> > > If I select --with-coroutine=ucontext,
> > > Authenication window appeared.
> > >
> > > But If I select --with-coroutine=gthread,
> > > Authenication window appeared but just white blank.
> > >
> > > Is there any reason exists?
> > >
> >
> > It looks like it's an issue with gtk_dialog_run(). This function enters
> > a recursive main loop which is a generally unsafe thing to do in gtk.
> > It's unfortunately really that it does this.
> >
>
> Can't it be solved by dropping gtk_dialog_run() call, and replace it
> with something like this:
Yes, but the point is that applications shouldn't have to worry about
the fact that GTK-VNC uses threads internally - we explicitly used
coroutines so apps wouldn't have this complication. They should be able
to use any GTK calls they like with GTK-VNC. So we have todo a better
job of hiding the fact that we use threads by emitting signals from the
main thread.
Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]