Re: Problem with the demo UI

Yes, I/we still need to find a solution for this. 

The problem is that it's possible that the alert_func function pointer
of the TnyAccountStore can be called by a thread.

Same for the get_pass_func and the forget_pass_func

I was thinking about using some GMainLoop magic ans synchronisation here
(letting the caller thread wait until the mainloop has finished
answering the question, and therefore has a return value for the
function itself)

A problem is that this should only come into play IF there is a mainloop
(which can be detected).

If somebody makes such a "execute it on the mainloop and wait for the
mainloop" functionality, that would be more than welcome.

On Fri, 2007-01-05 at 18:38 +0100, Sergio Villar Senin wrote:
> Hi folks,
> I've been playing a little bit with the demo-UI and I did the following
> in a GNOME desktop without the network-manager stuff:
> 1- configured an IMAP account
> 2- launch the demo
> 3- go online
> 4- press cancel when the password dialog is prompted
> 5- press cancel some more times (2,3 it depends on the execution)
> and then it happens one of these two things
>    * the application hangs
>    * I get a fancy: Xlib: unexpected async reply (sequence 0x...)
> I guess that is something related to threads and Gtk+
> Any idea? Anybody got the same?
> Br
> _______________________________________________
> tinymail-devel-list mailing list
> tinymail-devel-list gnome org
Philip Van Hoof, software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org

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