* Fixes NB#86793, don't loose modality after the close of the old modal window
authorSergio Villar Senin <svillar@igalia.com>
Mon, 14 Jul 2008 18:22:32 +0000 (18:22 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 14 Jul 2008 18:22:32 +0000 (18:22 +0000)
pmo-trunk-r4994

src/widgets/modest-window-mgr.c

index 1fefe35..585d071 100644 (file)
@@ -1237,6 +1237,10 @@ idle_top_modal (gpointer data)
        if (topmost) {
                gdk_threads_enter ();
                gtk_window_present (topmost);
+               /* It seems that the window looses modality if some
+                  other is shown on top of it after set_transient_for
+                  and set_parent */
+               gtk_window_set_modal (topmost, TRUE);
                gdk_threads_leave ();
        }