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

gtk: accept dropping URLs from browsers onto the main window #2232

Merged
merged 1 commit into from Nov 26, 2021

Conversation

jonasmalacofilho
Copy link
Contributor

@jonasmalacofilho jonasmalacofilho commented Nov 26, 2021

This makes URLs closer to files in terms of convenience, since both can now be dropped onto the main window without the user having to open a Open/Open URL dialog.

Unlike files, which come as a URI list, links dragged from browsers have textual selection types:

  • Firefox: text/plain;charset=utf-8
  • Chrome: UTF8_STRING

If the URI list for files is empty, try to pass the selection text to add_from_url().


EDIT: a backport of this patch for the 2.94 release, that does not yet use GTK through C++, is now available as 1f9287b.

Unlike files, which come as a URI list, links dragged from browsers have
textual selection types:

- Firefox: text/plain;charset=utf-8
- Chrome: UTF8_STRING

If the URI list for files is empty, try to pass the selection text to
add_from_url().
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ckerr ckerr merged commit 6cc9afe into transmission:master Nov 26, 2021
@ckerr
Copy link
Member

ckerr commented Nov 26, 2021

Thanks for the PR!

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

Successfully merging this pull request may close these issues.

None yet

2 participants