GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Aug 20, 2014 8:46 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GTK Popup Window
PostPosted: Sat Feb 24, 2007 11:43 am 
Offline
Familiar Face

Joined: Sat Feb 24, 2007 11:40 am
Posts: 9
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 3:17 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 4:28 pm 
Offline
Familiar Face

Joined: Sat Feb 24, 2007 11:40 am
Posts: 9
Yeah thanks, it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group