webkitchatcontainer: disable drag and drop on the webview

Avoid reloading the webview when user drag and drop an object on the
webview.

Change-Id: I552a0c8446b6271bb35a405737f9257f344e37a6
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
diff --git a/src/webkitchatcontainer.cpp b/src/webkitchatcontainer.cpp
index 08692ab..2b6062a 100644
--- a/src/webkitchatcontainer.cpp
+++ b/src/webkitchatcontainer.cpp
@@ -427,6 +427,7 @@
     /* Set the WebKitSettings */
     webkit_web_view_set_settings(WEBKIT_WEB_VIEW(priv->webview_chat), webkit_settings);
 
+    gtk_drag_dest_unset(priv->webview_chat); // remove drag and drop to prevent unwanted reloading
     g_signal_connect(priv->webview_chat, "load-changed", G_CALLBACK(webview_chat_load_changed), view);
     g_signal_connect_swapped(priv->webview_chat, "context-menu", G_CALLBACK(webview_chat_context_menu), view);
     g_signal_connect_swapped(priv->webview_chat, "script-dialog", G_CALLBACK(webview_send_text), view);