Blame SOURCES/evolution-3.28.5-webkitgtk-2.30.patch

ae52f0
diff -up evolution-3.28.5/src/modules/webkit-editor/e-webkit-editor.c.webkitgtk-2.30 evolution-3.28.5/src/modules/webkit-editor/e-webkit-editor.c
ae52f0
--- evolution-3.28.5/src/modules/webkit-editor/e-webkit-editor.c.webkitgtk-2.30	2018-07-30 15:37:05.000000000 +0200
ae52f0
+++ evolution-3.28.5/src/modules/webkit-editor/e-webkit-editor.c	2020-11-30 10:37:53.797115765 +0100
ae52f0
@@ -6111,11 +6111,12 @@ webkit_editor_drag_data_received_cb (Gtk
ae52f0
 	    info == E_DND_TARGET_TYPE_UTF8_STRING || info == E_DND_TARGET_TYPE_STRING ||
ae52f0
 	    info == E_DND_TARGET_TYPE_TEXT_PLAIN || info == E_DND_TARGET_TYPE_TEXT_PLAIN_UTF8) {
ae52f0
 		gdk_drag_status (context, gdk_drag_context_get_selected_action(context), time);
ae52f0
-		if (!GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->drag_drop (widget, context, x, y, time)) {
ae52f0
-			g_warning ("Drop failed in WebKit");
ae52f0
+		if (!GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->drag_drop ||
ae52f0
+		    !GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->drag_drop (widget, context, x, y, time)) {
ae52f0
 			goto process_ourselves;
ae52f0
 		} else {
ae52f0
-			GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->drag_leave(widget, context, time);
ae52f0
+			if (GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->drag_leave)
ae52f0
+				GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->drag_leave (widget, context, time);
ae52f0
 			g_signal_stop_emission_by_name (widget, "drag-data-received");
ae52f0
 			if (!is_move)
ae52f0
 				webkit_editor_call_simple_extension_function (wk_editor, "DOMLastDropOperationDidCopy");
ae52f0
@@ -6321,7 +6322,8 @@ webkit_editor_button_press_event (GtkWid
ae52f0
 	}
ae52f0
 
ae52f0
 	/* Chain up to parent's button_press_event() method. */
ae52f0
-	return GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->button_press_event (widget, event);
ae52f0
+	return GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->button_press_event &&
ae52f0
+	       GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->button_press_event (widget, event);
ae52f0
 }
ae52f0
 
ae52f0
 static gboolean
ae52f0
@@ -6378,7 +6380,8 @@ webkit_editor_key_press_event (GtkWidget
ae52f0
 	}
ae52f0
 
ae52f0
 	/* Chain up to parent's key_press_event() method. */
ae52f0
-	return GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->key_press_event (widget, event);
ae52f0
+	return GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->key_press_event &&
ae52f0
+	       GTK_WIDGET_CLASS (e_webkit_editor_parent_class)->key_press_event (widget, event);
ae52f0
 }
ae52f0
 
ae52f0
 static void