Skip to content

Commit

Permalink
Bug #25 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
petasis committed Feb 3, 2019
1 parent 1fc930e commit b58f000
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
2019-02-03 Petasis George <petasis@iit.demokritos.gr>
* win/OleDND.h:
* library/tkdnd_generic.tcl:
* library/tkdnd_macosx.tcl:
* library/tkdnd_unix.tcl:
* library/tkdnd_windows.tcl: Provided a solution for bug #25.
Under Windows, the dropped data is available for the <<DropEnter>> and
<<DropPosition>> events.
Expand Down
3 changes: 2 additions & 1 deletion library/tkdnd_macosx.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ namespace eval macdnd {
# ----------------------------------------------------------------------------
# Command macdnd::HandleEnter
# ----------------------------------------------------------------------------
proc macdnd::HandleEnter { path drag_source typelist } {
proc macdnd::HandleEnter { path drag_source typelist { data {} } } {
variable _pressedkeys
variable _actionlist
set _pressedkeys 1
set _actionlist { copy move link ask private }
::tkdnd::generic::SetDroppedData $data
::tkdnd::generic::HandleEnter $path $drag_source $typelist $typelist \
$_actionlist $_pressedkeys
};# macdnd::HandleEnter
Expand Down
3 changes: 2 additions & 1 deletion library/tkdnd_unix.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ namespace eval xdnd {
# ----------------------------------------------------------------------------
# Command xdnd::HandleXdndEnter
# ----------------------------------------------------------------------------
proc xdnd::HandleXdndEnter { path drag_source typelist } {
proc xdnd::HandleXdndEnter { path drag_source typelist { data {} } } {
variable _pressedkeys
variable _actionlist
set _pressedkeys 1
set _actionlist { copy move link ask private }
::tkdnd::generic::SetDroppedData $data
::tkdnd::generic::HandleEnter $path $drag_source $typelist $typelist \
$_actionlist $_pressedkeys
};# xdnd::HandleXdndEnter
Expand Down

0 comments on commit b58f000

Please sign in to comment.