[evolution/gnome-3-16] Bug 676974 - Use window's alert sink when preview panel is hidden
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-16] Bug 676974 - Use window's alert sink when preview panel is hidden
- Date: Wed, 10 Jun 2015 13:43:11 +0000 (UTC)
commit 75fa5c83fc6fa939bb3231f0dc0cdf9e1adcbeaa
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 10 15:38:29 2015 +0200
Bug 676974 - Use window's alert sink when preview panel is hidden
mail/e-mail-reader.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 3c99aa7..4c35647 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -3181,6 +3181,15 @@ mail_reader_get_alert_sink (EMailReader *reader)
preview_pane = e_mail_reader_get_preview_pane (reader);
+ if (!gtk_widget_is_visible (GTK_WIDGET (preview_pane))) {
+ GtkWindow *window;
+
+ window = e_mail_reader_get_window (reader);
+
+ if (E_IS_SHELL_WINDOW (window))
+ return E_ALERT_SINK (window);
+ }
+
return E_ALERT_SINK (preview_pane);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]