[evolution/express2] Set transient prop in express mode so that composer appears in the same zone as the mail window.



commit 4db5d55329a4f06b7369c114d6fd565f39747b8a
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Fri Apr 30 09:33:35 2010 +0530

    Set transient prop in express mode so that composer appears in the same
    zone as the mail window.

 composer/e-msg-composer.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 308d7e8..f8e3471 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2145,8 +2145,14 @@ msg_composer_class_init (EMsgComposerClass *class)
 static void
 msg_composer_init (EMsgComposer *composer)
 {
+	EShell *shell = e_shell_get_default ();
 	composer->lite = composer_lite;
 	composer->priv = E_MSG_COMPOSER_GET_PRIVATE (composer);
+
+	if (e_shell_get_express_mode (shell)) {
+		GtkWindow *window = e_shell_get_active_window(shell);
+		gtk_window_set_transient_for (GTK_WINDOW(composer), window);
+	}
 }
 
 GType



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]