mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
(trunk gtk) use G_SOURCE_REMOVE where appropriate
This commit is contained in:
parent
7cbb20279b
commit
f83ff36cd5
3 changed files with 5 additions and 5 deletions
|
@ -124,7 +124,7 @@ favicon_web_done_idle_cb (gpointer vfav)
|
|||
g_free (fav);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -933,7 +933,7 @@ on_torrent_completeness_changed_idle (gpointer gdata)
|
|||
gtr_notify_torrent_completed (data->core, data->torrent_id);
|
||||
g_object_unref (G_OBJECT (data->core));
|
||||
g_free (data);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
/* this is called in the libtransmission thread, *NOT* the GTK+ thread,
|
||||
|
@ -1019,7 +1019,7 @@ on_torrent_metadata_changed_idle (gpointer gdata)
|
|||
/* cleanup */
|
||||
g_object_unref (G_OBJECT (data->core));
|
||||
g_free (data);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
/* this is called in the libtransmission thread, *NOT* the GTK+ thread,
|
||||
|
@ -1746,7 +1746,7 @@ core_read_rpc_response_idle (void * vresponse)
|
|||
|
||||
tr_variantFree (&top);
|
||||
evbuffer_free (response);
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -361,7 +361,7 @@ onAltSpeedToggledIdle (gpointer vp)
|
|||
gboolean b = tr_sessionUsesAltSpeed (gtr_core_session (p->core));
|
||||
gtr_core_set_pref_bool (p->core, TR_KEY_alt_speed_enabled, b);
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue