mirror of
https://github.com/transmission/transmission
synced 2025-03-08 21:04:25 +00:00
(trunk) remove obscure macro
This commit is contained in:
parent
452fd21d15
commit
e2b7b05e55
2 changed files with 3 additions and 5 deletions
|
@ -171,10 +171,10 @@ accumulateStatusForeach( GtkTreeModel * model,
|
||||||
|
|
||||||
gtk_tree_model_get( model, iter, MC_ACTIVITY, &activity, -1 );
|
gtk_tree_model_get( model, iter, MC_ACTIVITY, &activity, -1 );
|
||||||
|
|
||||||
if( TR_STATUS_IS_ACTIVE( activity ) )
|
if( activity == TR_STATUS_STOPPED )
|
||||||
++counts->activeCount;
|
|
||||||
else
|
|
||||||
++counts->inactiveCount;
|
++counts->inactiveCount;
|
||||||
|
else
|
||||||
|
++counts->activeCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -1308,8 +1308,6 @@ tr_torrent_activity;
|
||||||
|
|
||||||
tr_torrent_activity tr_torrentGetActivity( tr_torrent * );
|
tr_torrent_activity tr_torrentGetActivity( tr_torrent * );
|
||||||
|
|
||||||
#define TR_STATUS_IS_ACTIVE( s ) ( ( s ) != TR_STATUS_STOPPED )
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
TR_LOCKFILE_SUCCESS = 0,
|
TR_LOCKFILE_SUCCESS = 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue