Changeset 7888 for trunk/gtk/tr-core.c


Ignore:
Timestamp:
Feb 13, 2009, 6:23:56 PM (13 years ago)
Author:
charles
Message:

(trunk) #1787: add support for seeding ratio limiting in libtransmission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r7860 r7888  
    12711271}
    12721272
     1273void
     1274tr_core_set_pref_double( TrCore *     self,
     1275                         const char * key,
     1276                         double       newval )
     1277{
     1278    const double oldval = pref_double_get( key );
     1279
     1280    if( oldval != newval )
     1281    {
     1282        pref_double_set( key, newval );
     1283        commitPrefsChange( self, key );
     1284    }
     1285}
     1286
Note: See TracChangeset for help on using the changeset viewer.