rename 'torrent_idle_data' as 'rpc_idle_data'
This commit is contained in:
parent
5adcf5d32d
commit
b3eb4be9b3
10
gtk/main.c
10
gtk/main.c
|
@ -331,7 +331,7 @@ on_main_window_size_allocated( GtkWidget * gtk_window,
|
||||||
**** listen to changes that come from RPC
|
**** listen to changes that come from RPC
|
||||||
***/
|
***/
|
||||||
|
|
||||||
struct torrent_idle_data
|
struct rpc_idle_data
|
||||||
{
|
{
|
||||||
TrCore * core;
|
TrCore * core;
|
||||||
int id;
|
int id;
|
||||||
|
@ -341,7 +341,7 @@ struct torrent_idle_data
|
||||||
static gboolean
|
static gboolean
|
||||||
rpc_torrent_remove_idle( gpointer gdata )
|
rpc_torrent_remove_idle( gpointer gdata )
|
||||||
{
|
{
|
||||||
struct torrent_idle_data * data = gdata;
|
struct rpc_idle_data * data = gdata;
|
||||||
|
|
||||||
gtr_core_remove_torrent( data->core, data->id, data->delete_files );
|
gtr_core_remove_torrent( data->core, data->id, data->delete_files );
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ static gboolean
|
||||||
rpc_torrent_add_idle( gpointer gdata )
|
rpc_torrent_add_idle( gpointer gdata )
|
||||||
{
|
{
|
||||||
tr_torrent * tor;
|
tr_torrent * tor;
|
||||||
struct torrent_idle_data * data = gdata;
|
struct rpc_idle_data * data = gdata;
|
||||||
|
|
||||||
if(( tor = gtr_core_find_torrent( data->core, data->id )))
|
if(( tor = gtr_core_find_torrent( data->core, data->id )))
|
||||||
gtr_core_add_torrent( data->core, tor, TRUE );
|
gtr_core_add_torrent( data->core, tor, TRUE );
|
||||||
|
@ -379,7 +379,7 @@ on_rpc_changed( tr_session * session,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TR_RPC_TORRENT_ADDED: {
|
case TR_RPC_TORRENT_ADDED: {
|
||||||
struct torrent_idle_data * data = g_new0( struct torrent_idle_data, 1 );
|
struct rpc_idle_data * data = g_new0( struct rpc_idle_data, 1 );
|
||||||
data->id = tr_torrentId( tor );
|
data->id = tr_torrentId( tor );
|
||||||
data->core = cbdata->core;
|
data->core = cbdata->core;
|
||||||
gdk_threads_add_idle( rpc_torrent_add_idle, data );
|
gdk_threads_add_idle( rpc_torrent_add_idle, data );
|
||||||
|
@ -388,7 +388,7 @@ on_rpc_changed( tr_session * session,
|
||||||
|
|
||||||
case TR_RPC_TORRENT_REMOVING:
|
case TR_RPC_TORRENT_REMOVING:
|
||||||
case TR_RPC_TORRENT_TRASHING: {
|
case TR_RPC_TORRENT_TRASHING: {
|
||||||
struct torrent_idle_data * data = g_new0( struct torrent_idle_data, 1 );
|
struct rpc_idle_data * data = g_new0( struct rpc_idle_data, 1 );
|
||||||
data->id = tr_torrentId( tor );
|
data->id = tr_torrentId( tor );
|
||||||
data->core = cbdata->core;
|
data->core = cbdata->core;
|
||||||
data->delete_files = type == TR_RPC_TORRENT_TRASHING;
|
data->delete_files = type == TR_RPC_TORRENT_TRASHING;
|
||||||
|
|
Loading…
Reference in New Issue