From f264aa77964e2007c6e899b523b4c754172363ef Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 7 Apr 2008 09:23:00 +0000 Subject: [PATCH] * make sure dialogs go to the background when some other app is chosen with the tasknav, by making sure dialogs are transient with respect to the main window. Fixes: #82440 pmo-trunk-r4372 --- src/widgets/modest-window-mgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/modest-window-mgr.c b/src/widgets/modest-window-mgr.c index b0202f0..4deb1ad 100644 --- a/src/widgets/modest-window-mgr.c +++ b/src/widgets/modest-window-mgr.c @@ -979,6 +979,11 @@ modest_window_mgr_set_modal (ModestWindowMgr *self, g_mutex_unlock (priv->queue_lock); if (!old_modal) { + /* make us transient wrt the main window then */ + ModestWindow *main_win = modest_window_mgr_get_main_window (self, FALSE); + if (GTK_WINDOW(main_win) != window) /* they should not be the same */ + gtk_window_set_transient_for (window, GTK_WINDOW(main_win)); + gtk_window_set_modal (window, TRUE); } else { /* un-modalize the old one; the one on top should be the -- 1.7.9.5