how to implement a modal window: gtk_run



Hi -

1. Register an event handler with your pushbutton.

2. In the event handler, create your dialog as you 
   normally would ... 

3. ...but use "gtk_run()" instead of "gtk_widget_show()".

Hope that helps .. PSM

Gurus,

I want to implement below behavior

1.main window has a button.
2.when the button is pressed, a new modal window pops up.

However, it seems neither gtk_window_set_modal nor gtk_grab_add does help.

What's the right way to use that? Is there any sample code that I can 
refer to?

thanks in advance and best regards,

ln




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