[evolution/wip/webkit2] 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/wip/webkit2] Bug 676974 - Use window's alert sink when preview panel is hidden
- Date: Thu, 25 Feb 2016 17:42:08 +0000 (UTC)
commit 5367733422f7ccefec7a7b54a976d12e07934cc2
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 3f7c842..4a78214 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -3266,6 +3266,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]