create a popup window from thread



Hi,

I encountered a problem. I wanted to display a popup window after the program finishes. But the popup window 
appeared without any text and button, with frame only. I tried 2 ways.

1. A thread writes to fifo,  and the main thread reads it and shows the popup window. It doesn't work
2. A thread calls g_idle_add, with a function as parameter, which calls gtk_widget_show and gdk_flush. It 
worked once or twice, but most of the time it didn't work.

Any idea what the problem is or another way to do it.


Regards,
Haibin



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