1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

(trunk gtk) #3930: Add drag-and-drop support for info hashes.

The "Add URL" dialog accepts URLs, magnet links, and infohashes, but only copyies urls and magnet links from the clipboard. Patch by cantabile.
This commit is contained in:
Jordan Lee 2011-01-21 21:35:11 +00:00
parent 4d529db419
commit d6518b93b8

View file

@ -930,7 +930,8 @@ gtr_paste_clipboard_url_into_entry( GtkWidget * e )
for( i=0; i<G_N_ELEMENTS(text); ++i ) {
char * s = text[i];
if( s && ( gtr_is_supported_url( s ) || gtr_is_magnet_link( s ) ) ) {
if( s && ( gtr_is_supported_url( s ) || gtr_is_magnet_link( s )
|| gtr_is_hex_hashcode( s ) ) ) {
gtk_entry_set_text( GTK_ENTRY( e ), s );
break;
}