* Reverted the BTextView part of r35731 again - turns out this usually doesn't
do what one would want. This closes ticket #5671. * I'm not sure if we want to resurrect the pose view part of r35731 again; it adds bitmap and text clips to dragged files. At least the bitmap change was unrelated, but I'm a bit torn if that is the way this should be handled. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36390 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1479,11 +1479,8 @@ BTextView::AcceptsPaste(BClipboard *clipboard)
|
|||||||
bool
|
bool
|
||||||
BTextView::AcceptsDrop(const BMessage *inMessage)
|
BTextView::AcceptsDrop(const BMessage *inMessage)
|
||||||
{
|
{
|
||||||
if (fEditable && inMessage && (inMessage->HasData("text/plain", B_MIME_TYPE)
|
return fEditable && inMessage
|
||||||
|| inMessage->HasData("refs", B_REF_TYPE)))
|
&& inMessage->HasData("text/plain", B_MIME_TYPE);
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -4790,9 +4787,6 @@ BTextView::_MessageDropped(BMessage *inMessage, BPoint where, BPoint offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Insert(dropOffset, text, dataLen, runArray);
|
Insert(dropOffset, text, dataLen, runArray);
|
||||||
} else if (inMessage->FindRef("refs", &ref) == B_OK) {
|
|
||||||
BPath path(&ref);
|
|
||||||
Insert(dropOffset, path.Path(), strlen(path.Path()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user