[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-58-g816c08b9c

thorsten at claws-mail.org thorsten at claws-mail.org
Fri Mar 19 18:08:55 CET 2021


The branch, gtk3 has been updated
       via  816c08b9c5b0b71549a794398bd2eed02530ca99 (commit)
      from  eac8e5b6236274f232d989da12c5e7464cf720d0 (commit)

Summary of changes:
 src/compose.c | 10 ++++++++++
 1 file changed, 10 insertions(+)


- Log -----------------------------------------------------------------
commit 816c08b9c5b0b71549a794398bd2eed02530ca99
Author: Thorsten Maerz <info at netztorte.de>
Date:   Fri Mar 19 18:08:19 2021 +0100

    Remove (unimplemented) GtkSocket on Windows

diff --git a/src/compose.c b/src/compose.c
index 30ecf5da3..887375d06 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -369,9 +369,11 @@ static void compose_set_ext_editor_sensitive	(Compose	*compose,
 						 gboolean	 sensitive);
 static gboolean compose_get_ext_editor_cmd_valid();
 static gboolean compose_get_ext_editor_uses_socket();
+#ifndef G_OS_WIN32
 static gboolean compose_ext_editor_plug_removed_cb
 						(GtkSocket      *socket,
 						 Compose        *compose);
+#endif /* G_OS_WIN32 */
 
 static void compose_undo_state_changed		(UndoMain	*undostruct,
 						 gint		 undo_state,
@@ -9591,7 +9593,9 @@ static void compose_exec_ext_editor(Compose *compose)
 {
 	gchar *tmp;
 	GtkWidget *socket;
+#ifndef G_OS_WIN32
 	Window socket_wid = 0;
+#endif /* G_OS_WIN32 */
 	GPid pid;
 	GError *error = NULL;
 	gchar *cmd;
@@ -9609,6 +9613,7 @@ static void compose_exec_ext_editor(Compose *compose)
 	}
 
 	if (compose_get_ext_editor_uses_socket()) {
+#ifndef G_OS_WIN32
 		/* Only allow one socket */
 		if (compose->exteditor_socket != NULL) {
 			if (gtk_widget_is_focus(compose->exteditor_socket)) {
@@ -9629,10 +9634,12 @@ static void compose_exec_ext_editor(Compose *compose)
 		gtk_widget_realize(socket);
 		socket_wid = gtk_socket_get_id(GTK_SOCKET (socket));
 		compose->exteditor_socket = socket;
+#endif /* G_OS_WIN32 */
 	}
 
 	if (compose_get_ext_editor_cmd_valid()) {
 		if (compose_get_ext_editor_uses_socket()) {
+#ifndef G_OS_WIN32
 			p = g_strdup(prefs_common_get_ext_editor_cmd());
 			s = strstr(p, "%w");
 			s[1] = 'u';
@@ -9641,6 +9648,7 @@ static void compose_exec_ext_editor(Compose *compose)
 			else
 				cmd = g_strdup_printf(p, socket_wid, tmp);
 			g_free(p);
+#endif /* G_OS_WIN32 */
 		} else {
 			cmd = g_strdup_printf(prefs_common_get_ext_editor_cmd(), tmp);
 		}
@@ -9881,12 +9889,14 @@ static gboolean compose_get_ext_editor_uses_socket()
 	        strstr(prefs_common_get_ext_editor_cmd(), "%w"));
 }
 
+#ifndef G_OS_WIN32
 static gboolean compose_ext_editor_plug_removed_cb(GtkSocket *socket, Compose *compose)
 {
 	compose->exteditor_socket = NULL;
 	/* returning FALSE allows destruction of the socket */
 	return FALSE;
 }
+#endif /* G_OS_WIN32 */
 
 /**
  * compose_undo_state_changed:

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list