GNOME Bugzilla – Bug 109638
provide a function to set a window modal to its parent window ony, but not the whole app
Last modified: 2004-12-22 21:47:04 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.
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.