aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index e58fd6fdf4..7790cbb2ea 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1902,6 +1902,8 @@ static gboolean
msg_composer_delete_event_cb (EMsgComposer *composer)
{
EShell *shell;
+ GtkApplication *application;
+ GList *windows;
shell = e_msg_composer_get_shell (composer);
@@ -1910,7 +1912,10 @@ msg_composer_delete_event_cb (EMsgComposer *composer)
if (!gtk_action_group_get_sensitive (composer->priv->async_actions))
return TRUE;
- if (g_list_length (e_shell_get_watched_windows (shell)) == 1) {
+ application = GTK_APPLICATION (shell);
+ windows = gtk_application_get_windows (application);
+
+ if (g_list_length (windows) == 1) {
/* This is the last watched window, use the quit
* mechanism to have a draft saved properly */
e_shell_quit (shell, E_SHELL_QUIT_ACTION);
@@ -2092,8 +2097,10 @@ msg_composer_constructed (GObject *object)
object, "delete-event",
G_CALLBACK (msg_composer_delete_event_cb), NULL);
- e_shell_adapt_window_size (shell, GTK_WINDOW (composer));
- e_shell_watch_window (shell, GTK_WINDOW (object));
+ e_shell_adapt_window_size (shell, GTK_WINDOW (object));
+
+ gtk_application_add_window (
+ GTK_APPLICATION (shell), GTK_WINDOW (object));
g_signal_connect (
shell, "quit-requested",
ph'>* Remove WWW entries moved into port MakefilesStefan Eßer2022-09-081-2/+0 * Add WWW entries to port MakefilesStefan Eßer2022-09-081-0/+1 * net-im/libaccounts-glib: update to 1.26Tobias C. Berner2022-09-072-6/+5 * framework: switch tree to using vala.mkTobias C. Berner2022-08-271-3/+2 * net-im/libaccounts-glib: remove not necessary CFLAGS_powerpc64Piotr Kubaj2022-04-221-1/+0 * net-im/libaccounts-glib: drop unnecesary CFLAGS for powerpc64lePiotr Kubaj2022-04-171-1/+0 * textproc/libxml2: bump all LIB_DEPENDS consumersCharlie Li2022-04-111-1/+1 * textproc/libxml2: bump all dependenciesMatthias Fechner2022-03-261-0/+1 * cleanup: remove 'Created by' linesTobias C. Berner2021-07-211-2/+0 * Regenerate all distfiles using gitlab as source.Matthias Fechner2021-04-101-3/+3 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 * Add -Wno-error in powerpc64le case, similar to powerpc64 case.Mark Linimon2020-09-241-0/+1 * net-im/libaccounts-glib: add tests-option to mesonTobias C. Berner2020-07-252-5/+9 * Update accounts-sso portsTobias C. Berner2020-07-115-34/+49 * Bump a few PORTREVISIONs after r498529Antoine Brodin2019-04-101-1/+1 * Introduce DOCS option to net-im/libaccounts-glib.Adriaan de Groot2019-03-112-49/+63 * net-im/libaccounts-glib: fix build on powerpc64Tobias C. Berner2018-10-051-1/+2 * Switch the accounts-sso ports to USE_GITLAB.Tobias C. Berner2018-04-302-7/+5 * Fix packaging with python3Antoine Brodin2017-12-141-0/+1 * Fix plist after r437491.Raphael Kubo da Costa2017-04-032-1/+1 * Use USES=pathfix where applicable.Mathieu Arnold2016-10-21