Changeset 1510


Ignore:
Timestamp:
Feb 23, 2007, 11:49:18 AM (15 years ago)
Author:
joshe
Message:

Clamp file progress to 0.0-1.0
Clear focus when opening files dialog.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r1506 r1510  
    373373    gtk_widget_show_now( wind  );
    374374    gtk_window_resize( GTK_WINDOW( wind ), width, height );
     375    gtk_window_set_focus( GTK_WINDOW( wind ), NULL );
    375376}
    376377
  • trunk/libtransmission/torrent.c

    r1508 r1510  
    534534        if( fileoff == filelen )
    535535        {
     536            ret[file] = MIN( 1.0, ret[file] );
     537            ret[file] = MAX( 0.0, ret[file] );
    536538            filestart += fileoff;
    537539            fileoff    = 0;
Note: See TracChangeset for help on using the changeset viewer.