Re: issues about modal dialogs
- From: Paul Davis <pbd Op Net>
- To: Johnny Mnemonic <johnny themnemonic org>
- Cc: gtk-list gnome org
- Subject: Re: issues about modal dialogs
- Date: Mon, 14 Jan 2002 09:14:08 -0500
>- How can I make modal dialogs "always-on-top" between my application 
>windows? Just like Win32's modals, that won't allow hiding the dialog 
>under another window of the same application.
gdk_window_set_transient_for()   <= asks the WM to keep one window on
				     top of another
gdk_window_set_decorations()     <= asks the WM to avoid various decorations
				     such as the delete button,
				     raise/lower etc.
note that these can do no more than ask the WM: if the user uses a WM
that doesn't honor the requests, the application can do absolutely
nothing about it. this is the way X Window works - the WM is god, and
the user chooses their own god.
>- I want the modal dialog to return in the same place where i called it from, 
>calling a nested gtk_main(). In order to do this, I know that i have to 
>handle several situations.. What should I handle other than window destroy, 
>buttons clicks, and window delete?
thats about it.
>- Is there anything else i need to know to get the nested gtk_main() working 
>safely? Also if you know some applications example please let me know.
that should do it. i have several examples, but i work with gtkmm, so
i can't give you any specific examples. i imagine that the testgtk
program contains at least one example.
--p
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]