<?php
function filesDropped($widget, $arFiles) {
foreach($arFiles as $strFile) {
echo "ファイル \"$strFile\" がドロップされました\r\n";
}
}
$accepted_types = array(
'text/html',
'text/plain',
'.dat'
);
Gtk2_FileDrop::attach($widget, $accepted_types, 'filesDropped', false);
?>
|