1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

(trunk gtk) use G_SOURCE_REMOVE where appropriate

This commit is contained in:
Jordan Lee 2013-07-20 16:37:59 +00:00
parent 7cbb20279b
commit f83ff36cd5
3 changed files with 5 additions and 5 deletions

View file

@ -124,7 +124,7 @@ favicon_web_done_idle_cb (gpointer vfav)
g_free (fav); g_free (fav);
} }
return FALSE; return G_SOURCE_REMOVE;
} }
static void static void

View file

@ -933,7 +933,7 @@ on_torrent_completeness_changed_idle (gpointer gdata)
gtr_notify_torrent_completed (data->core, data->torrent_id); gtr_notify_torrent_completed (data->core, data->torrent_id);
g_object_unref (G_OBJECT (data->core)); g_object_unref (G_OBJECT (data->core));
g_free (data); g_free (data);
return FALSE; return G_SOURCE_REMOVE;
} }
/* this is called in the libtransmission thread, *NOT* the GTK+ thread, /* this is called in the libtransmission thread, *NOT* the GTK+ thread,
@ -1019,7 +1019,7 @@ on_torrent_metadata_changed_idle (gpointer gdata)
/* cleanup */ /* cleanup */
g_object_unref (G_OBJECT (data->core)); g_object_unref (G_OBJECT (data->core));
g_free (data); g_free (data);
return FALSE; return G_SOURCE_REMOVE;
} }
/* this is called in the libtransmission thread, *NOT* the GTK+ thread, /* 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); tr_variantFree (&top);
evbuffer_free (response); evbuffer_free (response);
return FALSE; return G_SOURCE_REMOVE;
} }
static void static void

View file

@ -361,7 +361,7 @@ onAltSpeedToggledIdle (gpointer vp)
gboolean b = tr_sessionUsesAltSpeed (gtr_core_session (p->core)); gboolean b = tr_sessionUsesAltSpeed (gtr_core_session (p->core));
gtr_core_set_pref_bool (p->core, TR_KEY_alt_speed_enabled, b); gtr_core_set_pref_bool (p->core, TR_KEY_alt_speed_enabled, b);
return FALSE; return G_SOURCE_REMOVE;
} }
static void static void