1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +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);
}
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View file

@ -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

View file

@ -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