[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 26 11:57:21 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 54546849a52f2c09c7bae98132d5fbf99f477e95
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jun 26 11:43:24 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jun 26 13:56:26 2019 +0200
force drag dest to track motion
if we configure something to be dropped on, then make it track drags
Change-Id: I7beacae7012b8929f9bcfa4c72d713ed04ba576c
Reviewed-on: https://gerrit.libreoffice.org/74733
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 41504bf55c65..9d25670d3138 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -2064,6 +2064,11 @@ public:
if (!m_xDropTarget)
{
m_xDropTarget.set(new GtkDropTarget);
+ if (!gtk_drag_dest_get_track_motion(m_pWidget))
+ {
+ gtk_drag_dest_set(m_pWidget, GtkDestDefaults(0), nullptr, 0, GdkDragAction(0));
+ gtk_drag_dest_set_track_motion(m_pWidget, true);
+ }
m_nDragMotionSignalId = g_signal_connect(m_pWidget, "drag-motion", G_CALLBACK(signalDragMotion), this);
m_nDragDropSignalId = g_signal_connect(m_pWidget, "drag-drop", G_CALLBACK(signalDragDrop), this);
m_nDragDropReceivedSignalId = g_signal_connect(m_pWidget, "drag-data-received", G_CALLBACK(signalDragDropReceived), this);
More information about the Libreoffice-commits
mailing list