After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 109638 - provide a function to set a window modal to its parent window ony, but not the whole app
provide a function to set a window modal to its parent window ony, but not th...
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-03-31 18:25 UTC by Dave Bordoley [Not Reading Bug Mail]
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dave Bordoley [Not Reading Bug Mail] 2003-03-31 18:25:42 UTC
In epiphany we have various toplevel windows (bookmarks etc.) which aren't
necessarily connected in the mind of the user. Right now when a user
chooses to bookmark a page we want to disallow interaction with the window
that is to be bookmarked, however using gtk_window_set_modal sets the
dialog modal to the whole app which really doesn't make sense in a
documented oriented app.

to get around this i've had to hack the dialog to set the parent
insensitive while the user is using the dialog. Might be nice to provide a
function that did this, instead of having to hack every dialog.
Comment 1 Owen Taylor 2003-03-31 18:33:23 UTC
GtkWindowGroup * gtk_window_group_new           (void);
void             gtk_window_group_add_window    (GtkWindowGroup    
*window_group,
                                                 GtkWindow         
*window);
void             gtk_window_group_remove_window (GtkWindowGroup    
*window_group,
                                                 GtkWindow         
*window);

Was added exactly for this reason. See bug 69934 for the
problem that you can't do full-app-model dialogs in this
situation.