Browse Source

Fix: [GTK3MaxGUI.mod] Emit events for every dropped file (#29)

Ronny Otto 6 years ago
parent
commit
3c1b16e6fe
1 changed files with 3 additions and 1 deletions
  1. 3 1
      gtk3maxgui.mod/gtkgadget.bmx

+ 3 - 1
gtk3maxgui.mod/gtkgadget.bmx

@@ -799,7 +799,9 @@ Type TGTKWindow Extends TGTKContainer
 	Function OnDragDrop(widget:Byte Ptr, context:Byte Ptr, x:Int, y:Int, data:Byte Ptr, info:Int, time:Int, obj:Object)
 		Local uris:String[] = bmx_gtk3_selection_data_get_uris(data)
 		If uris Then
-			PostGuiEvent EVENT_WINDOWACCEPT,TGadget(obj),0,0,x,y,uris[0].Replace("file://", "")
+			For Local uri:String = EachIn uris
+				PostGuiEvent EVENT_WINDOWACCEPT,TGadget(obj),0,0,x,y,uri.Replace("file://", "")
+			Next
 		End If
 	End Function