mirror of
https://github.com/transmission/transmission
synced 2025-03-04 02:28:03 +00:00
(gtk) set the default sort column & mode for the message window's list
This commit is contained in:
parent
820bc5089b
commit
8f246d63e8
2 changed files with 4 additions and 1 deletions
|
@ -427,6 +427,9 @@ msgwin_new( TrCore * core )
|
|||
|
||||
data->filter = gtk_tree_model_filter_new( GTK_TREE_MODEL( data->store ), NULL );
|
||||
data->sort = gtk_tree_model_sort_new_with_model( data->filter );
|
||||
gtk_tree_sortable_set_sort_column_id( GTK_TREE_SORTABLE( data->sort ),
|
||||
COL_SEQUENCE,
|
||||
GTK_SORT_ASCENDING );
|
||||
data->maxLevel = pref_int_get( PREF_KEY_MSGLEVEL );
|
||||
gtk_tree_model_filter_set_visible_func( GTK_TREE_MODEL_FILTER( data->filter ),
|
||||
isRowVisible, data, NULL );
|
||||
|
|
|
@ -93,7 +93,7 @@ natPulse( tr_shared * s )
|
|||
if( status == TR_NAT_TRAVERSAL_ERROR )
|
||||
status = tr_upnpPulse( s->upnp, port, isEnabled );
|
||||
if( status != s->natStatus ) {
|
||||
tr_ninf( getKey(), _( "state changed from \"%s\" to \"%s\"" ), getNatStateStr(s->natStatus), getNatStateStr(status) );
|
||||
tr_ninf( getKey(), _( "State changed from \"%s\" to \"%s\"" ), getNatStateStr(s->natStatus), getNatStateStr(status) );
|
||||
s->natStatus = status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue