Changeset 11743


Ignore:
Timestamp:
Jan 21, 2011, 9:35:11 PM (11 years ago)
Author:
jordan
Message:

(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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r11738 r11743  
    931931  for( i=0; i<G_N_ELEMENTS(text); ++i ) {
    932932      char * s = text[i];
    933       if( s && ( gtr_is_supported_url( s ) || gtr_is_magnet_link( s ) ) ) {
     933      if( s && ( gtr_is_supported_url( s ) || gtr_is_magnet_link( s )
     934                                           || gtr_is_hex_hashcode( s ) ) ) {
    934935          gtk_entry_set_text( GTK_ENTRY( e ), s );
    935936          break;
Note: See TracChangeset for help on using the changeset viewer.