/* Returns: For historical reasons, this function always returns TRUE  */
gboolean g_source_remove(guint tag)
/* Returns: For historical reasons, this function always returns TRUE  */
gboolean g_source_remove(guint tag)
{
  GSource *source;
  g_return_val_if_fail (tag > 0, FALSE);
  source = g_main_context_find_source_by_id (NULL, tag);
  if (source)
    g_source_destroy (source);
  else
    g_critical ("Source ID %u was not found when attempting to remove it", tag);
  return source != NULL;
}