Re: trying to launch a dialog from outside the main gui thread by emiting a signal to the thread.



On 3/7/07, Kevin Lambert <kl lapis com> wrote:
I ended up modifying my class such that the information for the dialog gets
added to a vector and I added a timer which looks at the vector and if there
is something new to be displayed it pops it off and launches the appropriate
dialog, thus keeping everything happening within the GUI thread (or at least
that is what I am assuming is happening now that the code works).

Kevin

GLib already has GAsyncQueue for this. Usually, you can get away with
using g_idle_add, it's simpler.



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