GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GTK Popup Window

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
rotalever
Familiar Face


Joined: 24 Feb 2007
Posts: 11

PostPosted: Sat Feb 24, 2007 11:43 am    Post subject: GTK Popup Window Reply with quote

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

PostPosted: Sat Feb 24, 2007 3:17 pm    Post subject: Reply with quote

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

PostPosted: Sat Feb 24, 2007 4:28 pm    Post subject: Reply with quote

Yeah thanks, it works.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP