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
> 
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to