/* Returns: TRUE if the #GHook was found in the #GHookList and destroyed  */
gboolean g_hook_destroy(GHookList *hook_list, gulong hook_id)
/* Returns: TRUE if the #GHook was found in the #GHookList and destroyed  */
gboolean g_hook_destroy(GHookList *hook_list, gulong hook_id)
{
  GHook *hook;
  g_return_val_if_fail (hook_list != NULL, FALSE);
  g_return_val_if_fail (hook_id > 0, FALSE);
  hook = g_hook_get (hook_list, hook_id);
  if (hook)
    {
      g_hook_destroy_link (hook_list, hook);
      return TRUE;
    }
  return FALSE;
}