create a popup window from thread
- From: Liu Hai Bin <haibin resolvo com>
- To: gtk-app-devel-list gnome org
- Subject: create a popup window from thread
- Date: Fri, 14 Jan 2005 10:41:40 +0800
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]