1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

add message queueing flag to tr_initFull() too

This commit is contained in:
Charles Kerr 2007-12-24 16:12:23 +00:00
parent bc84156d4f
commit 6db02c401b
4 changed files with 9 additions and 6 deletions

View file

@ -309,6 +309,4 @@ void
msgwin_loadpref( void ) msgwin_loadpref( void )
{ {
textbuf = debug_window_text_buffer_new ( ); textbuf = debug_window_text_buffer_new ( );
tr_setMessageLevel( pref_int_get( PREF_KEY_MSGLEVEL ) );
tr_setMessageQueuing( TRUE );
} }

View file

@ -350,7 +350,8 @@ tr_core_init( GTypeInstance * instance, gpointer g_class SHUTUP )
pref_flag_get( PREF_KEY_DL_LIMIT_ENABLED ), pref_flag_get( PREF_KEY_DL_LIMIT_ENABLED ),
pref_int_get( PREF_KEY_DL_LIMIT ), pref_int_get( PREF_KEY_DL_LIMIT ),
pref_int_get( PREF_KEY_MAX_PEERS_GLOBAL ), pref_int_get( PREF_KEY_MAX_PEERS_GLOBAL ),
pref_int_get( PREF_KEY_MSGLEVEL ) ); pref_int_get( PREF_KEY_MSGLEVEL ),
TRUE );
/* create the model used to store torrent data */ /* create the model used to store torrent data */
g_assert( ALEN( types ) == MC_ROW_COUNT ); g_assert( ALEN( types ) == MC_ROW_COUNT );

View file

@ -114,7 +114,8 @@ tr_initFull( const char * tag,
int isDownloadLimitEnabled, int isDownloadLimitEnabled,
int downloadLimit, int downloadLimit,
int globalPeerLimit, int globalPeerLimit,
int messageLevel ) int messageLevel,
int isMessageQueueingEnabled )
{ {
tr_handle * h; tr_handle * h;
@ -125,6 +126,7 @@ tr_initFull( const char * tag,
tr_msgInit( ); tr_msgInit( );
tr_setMessageLevel( messageLevel ); tr_setMessageLevel( messageLevel );
tr_setMessageQueuing( isMessageQueueingEnabled );
h = tr_new0( tr_handle, 1 ); h = tr_new0( tr_handle, 1 );
h->lock = tr_lockNew( ); h->lock = tr_lockNew( );
@ -178,7 +180,8 @@ tr_handle * tr_init( const char * tag )
FALSE, /* use download speed limit? */ FALSE, /* use download speed limit? */
-1, /* download speed limit */ -1, /* download speed limit */
512, /* globalPeerLimit */ 512, /* globalPeerLimit */
TR_MSG_INF ); /* message level */ TR_MSG_INF, /* message level */
FALSE ); /* is message queueing enabled? */
} }
/*** /***

View file

@ -121,7 +121,8 @@ tr_handle * tr_initFull( const char * tag,
int isDownloadLimitEnabled, int isDownloadLimitEnabled,
int downloadLimit, int downloadLimit,
int globalPeerLimit, int globalPeerLimit,
int messageLevel ); int messageLevel,
int isMessageQueueingEnabled );
/** /**