- From: Owen Taylor <otaylor redhat com>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: set_modal/grab_add
- Date: Wed, 16 Oct 2002 14:26:18 -0400 (EDT)
Tristan Van Berkom <vantr touchtunes com> writes:
While I sift through the source someone might
be able to tell me:
do the same as:
exept for the the window not having its "modal"
property set ?
set_modal() is essentially "gtk_grab when the window
is shown, ungrab when it is hidden."
There are a few extra tweaks based on the modal flag -- e.g.,
if you call gtk_window_set_modal() on a GtkFileSelection
object, it will properly make child dialogs modal sa well.
the reason for this question is that I would like
to "set_modal" on my own custom widget which
doesn't inherit from GtkWindow. (I know I could
give it it's own window but I'll eliminate alot
of extra code this way.)
Note that every widget displayed on the screen must have
a GtkWindow as the toplevel widget on the heirarchy
or GTK+ will not work correctly.
] [Thread Prev