]> git.saurik.com Git - wxWidgets.git/commitdiff
Also set mouse position in ITEM_BEGIN_DRAG event in wxDataViewCtrl under GTK+, part...
authorRobert Roebling <robert@roebling.de>
Sat, 23 Oct 2010 13:48:15 +0000 (13:48 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 23 Oct 2010 13:48:15 +0000 (13:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dataview.cpp

index 96ea64b8c60a59c485f7a8d21758264fa9db223b..7e180ca0928030642262c1ab72bc1c648eec2cbc 100644 (file)
@@ -3516,6 +3516,9 @@ gboolean wxDataViewCtrlInternal::row_draggable( GtkTreeDragSource *WXUNUSED(drag
     event.SetEventObject( m_owner );
     event.SetItem( item );
     event.SetModel( m_wx_model );
+    gint x, y;
+    gtk_widget_get_pointer(m_owner->GtkGetTreeView(), &x, &y);
+    event.SetPosition(x, y);
     if (!m_owner->HandleWindowEvent( event ))
         return FALSE;