Parcourir la source

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

Ronny Otto il y a 6 ans
Parent
commit
3c1b16e6fe
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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