[PATCH] Modal window support + GtkFileSelection + GtkColorSelection



Hi.
	This is a patch to get better modal window support in gtk+ in general. 
	It solves a problem with modal GtkFileSelection too. 
	If it is applied will allow to solve the same problem with
GtkColorSelectionDialog in gnome_color_selector in modal dialog boxes.
	The file has been uploaded to incoming directory as
gtk-abilleira-072198-patch.gz.

	Here is the README:

----------  gtk-abilleira-072198-patch.README ------------
This patch is for get better modal window support in GTK+. It allow an
easier method to get modal window and correct the problem with standard
dialogs (file_selection and color_selection) that doesn't work as
when they are grabed.

This patch adds some changes in these files:

gtkwindow.[hc] -> Adds modal field and gtk_window_set_modal function
        to allow set a window to work as a modal one. gtk_window_show
        check if modal is active and if it is true grab the window.
        gtk_window_hide does the inverse action.

gtkfilesel.c -> Test if it is running in modal form and in that case
will run "Create Dir","Delete File" and "Rename File" dialogs as modal
too. In actual gtk+ if file selection is running modal widgets in
"Create Dir","Delete File" and "Rename File" dialogs doesn't work.

testgtk.c -> Added a button with an example of creating modal dialog
boxes. Including file selection and color selection standard dialogs.
This is FAQ in gtk-list so I think this example will be useful.
----------  gtk-abilleira-072198-patch.README ------------

	The patch is atthed to the message too.
	Bye.
-- 
+--------------------------+---------------------------+
|David Abilleira Freijeiro | Pontevedra, España        |
+--------------------------+---------------------------+
|http://members.xoom.com/odaf   (mailto:odaf@nexo.es)  |
|    (UNED, Mis Programas, Linux, Programación, etc.)  |
|WAINU: http://www.geocities.com/Athens/Forum/5889/    |
+------------------------------------------------------+

gtk-abilleira-072198-patch.gz



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