Re: [gtk-list] modal windows ?



use
(void) gtk_grab_add(window); /* just after window displayed */
and
(void) gtk_grab_remove(window); /* after ok is clicked */ 
to make a window modal, then to remove it afterwards.
Mario Motta wrote:
> 
> hello,
> perhaps an old question, but someone could answer to me:
> - how can make a child window a modal one ?
> - in other word if i make a child dialog window from inside a window how
> can make the 'parent' deactivated (no receive signals nor events) so i
> can interrupt the user activity until in this task pushes an OK button ?
> - how can make the dialog stays "always on top" ?
> 
> thanks a lot.
> 
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

-- 
Lawrence Sim
http://www.tne.net.au/wanderer/
mailto:lasim@earthling.net



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