help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Gtk event loop


From: Gwenael Casaccio
Subject: Re: [Help-smalltalk] Gtk event loop
Date: Tue, 16 Feb 2010 15:32:10 +0100
User-agent: KMail/1.13.0 (Linux/2.6.31-19-generic; KDE/4.4.0; x86_64; ; )

On Tuesday 16 February 2010 01:44:01 pm Gwenael Casaccio wrote:
> On Friday 12 February 2010 11:55:36 am Paolo Bonzini wrote:
> > On 02/12/2010 10:59 AM, Gwenael Casaccio wrote:
> > > On Thursday 11 February 2010 11:39:38 am Paolo Bonzini wrote:
> > >>>   Right now that works well (for example I can launch iLiad without
> > >>>   any
> > >>> 
> > >>> problem) I should fix the gtk_dialog_run because this function launch
> > >>> an inner loop outside the same thread that the main gtk_loop; the two
> > >>> loops are locked :D.
> > >> 
> > >> I think it should not be hard to rewrite gtk_dialog_run in Smalltalk,
> > >> see
> > >> 
> > >> http://www.google.com/codesearch/p?hl=en#ErvFMsc8kPE/pub/GNOME/sources
> > >> /g tk+ /2.6/gtk+-2.6.9.tar.gz|z8d-VbwUHqs/gtk+-2.6.9/gtk/gtkdialog.c
> > >> 
> > >> around line 900.
> > > 
> > > Normally a simple
> > > run [
> > > 
> > >    self showAll
> > > 
> > > ]
> > > 
> > > That should be enough ^^
> > 
> > When it is, the caller should have said "showAll".  "Run" is blocking.
> > 
> > Paolo
> 
> Hi,
> 
> you'll find as an attached file the first release of the new gtk event
> loop.
> 
> Gwen

we should extend the binding generator to generate  thread safe gtk functions 
(with gdk_threads_enter the gtk_function gdk_threads_leave)

Gwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]