Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to implement Drag-and-Drop files (DnD Portals API)? #16

Closed
Arcitec opened this issue Jan 28, 2021 · 6 comments
Closed

Possible to implement Drag-and-Drop files (DnD Portals API)? #16

Arcitec opened this issue Jan 28, 2021 · 6 comments

Comments

@Arcitec
Copy link
Contributor

Arcitec commented Jan 28, 2021

The manual "Open a file" dialog works properly in Celluloid and calls the Portals API to be able to see the whole filesystem and get access to whatever file that you tell it to open.

Dragging-and-dropping files doesn't work, though.

However, I read about the "filetransfer" portal which adds drag and drop support to applications. Is this possible to implement in Celluloid, or is it still too early to support it?

Here are the related topics I've found about "drag and drop portals". Seems like it's a very new feature:

flatpak/flatpak#1143

flatpak/xdg-desktop-portal#99

https://github.com/flathub/org.telegram.desktop/issues/23

@TingPing
Copy link
Member

Should just work in GTK4 once that transition happens.

@Arcitec
Copy link
Contributor Author

Arcitec commented Jan 29, 2021

@TingPing Ah if I understood that right, the problem is that Celluloid doesn't yet use GTK4? https://github.com/celluloid-player/celluloid.

@TingPing
Copy link
Member

TingPing commented Feb 2, 2021

Correct. That change alone should fix it.

@vchernin
Copy link

vchernin commented Jul 18, 2021

The portal could also be backported to GTK 3.

The app you're dragging from (eg. Nautilus) needs to support the portal, since Nautilus is also on GTK 3 this issue is blocked on that too.

So if the portal is backported to GTK 3 that would fix everything needed (provided apps update to newer GTK 3).

@TingPing
Copy link
Member

TingPing commented Jul 18, 2021

I think its a large enough task that I wouldn't expect to happen on its own.

Its actually probably less friction to port Celluloid to GTK4 and I imagine would happen at some point anyway.

@TingPing
Copy link
Member

Celluloid uses GTK4 since v0.22 (Nov 5, 2021).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants