Just a guess, but I'd try putting a function in Thread 1 that emits the
signal, but call
that function from Thread 2.  This way, Thread 2 controls when the signal is
emitted,
but the signal is still handled by Thread 1.  Never actually tried this
myself, though,
so I don't know for sure if one thread can call a function in another
thread.

Ed James

2008/7/15 HASWANI HARISH-VCKR47 <[EMAIL PROTECTED]>:

>  Hi All,
>
> I am a beginner to gtk APIs.
> My query is :
> - In Thread T1 I am calling g_main_loop()
> - In Thread T2 I am emitting a signal through
> g_signal_emit_by_name(G_OBJECT, signal-name);
>
> I saw that signal handler is running in Thread2 context. I want that it
> should run in Thread 1 context. How I can achieve this?
>
>
>
>
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to