mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: Support for files source in X11
git-svn-id: svn://ultimatepp.org/upp/trunk@7429 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ce8334cdc2
commit
69a5614275
1 changed files with 11 additions and 0 deletions
|
|
@ -377,6 +377,17 @@ Vector<String> GetFiles(PasteClip& clip) {
|
|||
return r;
|
||||
}
|
||||
|
||||
void AppendFiles(VectorMap<String, ClipData>& data, const Vector<String>& files)
|
||||
{
|
||||
GuiLock __;
|
||||
if(files.GetCount() == 0)
|
||||
return;
|
||||
String h;
|
||||
for(int i = 0; i < files.GetCount(); i++)
|
||||
h << "file://" << files[i] << '\n';
|
||||
data.GetAdd("text/uri-list") = h;
|
||||
}
|
||||
|
||||
bool PasteClip::IsAvailable(const char *fmt) const
|
||||
{
|
||||
return Ctrl::ClipHas(type, fmt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue