[9148] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] WindowToFront and modal dialogs questions

daemon@ATHENA.MIT.EDU (Michal Kara)
Sat Oct 10 10:30:19 1998

From: Michal Kara <lemming@atrey.karlin.mff.cuni.cz>
To: gtk-list@redhat.com
Date: Sat, 10 Oct 1998 16:30:02 +0200 (MET DST)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

     Hello!

     I am developping technical drawing program using GTK and I have following
questions:

     1) User can have multiple sheets. Since there is nothing like MDI under
Windows, I have decided to use separate window for each sheet. I want to give
user easy shortcut to cycle through sheets. But for this, I need to be able to
directively put sheet window to the front of all other windows. I have searched
gtk include files and I have not found such function.

     2) When user exits program, I want to close all sheets. Of course, when
sheet was changed, it asks before closing, whether to save changes, forget
changes or canel operation. If user wants to save sheet which was not yet saved,
file selection dialog pops up.

     It would make good sense if both these dialogs were modal. It is much
easier to program and it also limits unexpected user operations (trying to close
again sheet for which there is pending save dialog etc.) which must be carefully
tested for.

     So is it possible somehow to create modal dialogs?

     (This was just an example. There are many more situations when modal
dialogs come handy.)

				Thanks in advance
					Michal Kara alias lemming

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post