[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-100-g0115f72e2
paul at claws-mail.org
paul at claws-mail.org
Fri Nov 17 21:50:51 UTC 2023
The branch, gtk2 has been updated
via 0115f72e2ef3aee4f10d2c0f11ecb61f8de920af (commit)
from a2255922fc9fe7afedc6cbb25cf36d172841d282 (commit)
Summary of changes:
src/compose.c | 11 +++++------
src/plugins/dillo/dillo_viewer.c | 9 ++-------
2 files changed, 7 insertions(+), 13 deletions(-)
- Log -----------------------------------------------------------------
commit 0115f72e2ef3aee4f10d2c0f11ecb61f8de920af
Author: paul <paul at claws-mail.org>
Date: Fri Nov 17 21:50:02 2023 +0000
Revert "fix bug 4361, 'Embedding external editor crashes Claws-Mail on Wayland' and a similar crash with the dillo plugin"
This reverts commit a2255922fc9fe7afedc6cbb25cf36d172841d282.
diff --git a/src/compose.c b/src/compose.c
index 59b938d5b..d912c459a 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -9675,7 +9675,7 @@ static void compose_exec_ext_editor(Compose *compose)
return;
}
- if (compose_get_ext_editor_uses_socket() && GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
+ if (compose_get_ext_editor_uses_socket()) {
#ifndef G_OS_WIN32
/* Only allow one socket */
if (compose->exteditor_socket != NULL) {
@@ -9702,11 +9702,10 @@ static void compose_exec_ext_editor(Compose *compose)
g_free(tmp);
return;
#endif /* G_OS_WIN32 */
- } else
- debug_print("Socket communication with an external editor is only available on X11.\n");
+ }
if (compose_get_ext_editor_cmd_valid()) {
- if (compose_get_ext_editor_uses_socket() && GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
+ if (compose_get_ext_editor_uses_socket()) {
#ifndef G_OS_WIN32
p = g_strdup(prefs_common_get_ext_editor_cmd());
s = strstr(p, "%w");
@@ -9804,7 +9803,7 @@ static void compose_ext_editor_closed_cb(GPid pid, gint exit_status, gpointer da
compose->exteditor_file = NULL;
compose->exteditor_pid = INVALID_PID;
compose->exteditor_tag = -1;
- if (compose->exteditor_socket && GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
+ if (compose->exteditor_socket) {
gtk_widget_destroy(compose->exteditor_socket);
compose->exteditor_socket = NULL;
}
@@ -9915,7 +9914,7 @@ static void compose_set_ext_editor_sensitive(Compose *compose,
ext_editor_menu_entries[i], sensitive);
}
- if (compose_get_ext_editor_uses_socket() && GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
+ if (compose_get_ext_editor_uses_socket()) {
if (sensitive) {
if (compose->exteditor_socket)
gtk_widget_hide(compose->exteditor_socket);
diff --git a/src/plugins/dillo/dillo_viewer.c b/src/plugins/dillo/dillo_viewer.c
index f131d35c6..b41cc353f 100644
--- a/src/plugins/dillo/dillo_viewer.c
+++ b/src/plugins/dillo/dillo_viewer.c
@@ -1,6 +1,6 @@
/*
- * Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2023 the Claws Mail Team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2012 the Claws Mail Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -124,11 +124,6 @@ static void dillo_show_mimepart(MimeViewer *_viewer,
g_free(viewer->filename);
}
- if (!GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
- debug_print("dillo viewer only works on X11\n");
- return;
- }
-
viewer->filename = procmime_get_tmp_file_name(partinfo);
if (!(procmime_get_part(viewer->filename, partinfo) < 0)) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list