 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
rotalever Familiar Face
Joined: 24 Feb 2007 Posts: 11
|
Posted: Sat Feb 24, 2007 11:43 am Post subject: GTK Popup Window |
|
|
Hi,
I have a main window with several widgets. In this main window is a button. This works fine.
If the user presses the button, a new window on top of the main window should appear. This window MUST block the main window, so that the user first have to interact with the new window / popup and finally close it, to get back to the main window. Howto do that? |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 387 Location: Fairfax, Virginia
|
Posted: Sat Feb 24, 2007 3:17 pm Post subject: |
|
|
| You have to use the GtkDialog. When you call gtk_dialog_run() on the dialog, it will block the main loop. (The user will still be able to give focus to the parent window, but he/she will not be able to interact with it. |
|
| Back to top |
|
 |
rotalever Familiar Face
Joined: 24 Feb 2007 Posts: 11
|
Posted: Sat Feb 24, 2007 4:28 pm Post subject: |
|
|
| Yeah thanks, it works. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|