/* Returns: TRUE if the pointer is removed, FALSE if the pointer is not found in the array  */
gboolean g_ptr_array_remove(GPtrArray *array, gpointer data)
/* Returns: TRUE if the pointer is removed, FALSE if the pointer is not found in the array  */
gboolean g_ptr_array_remove(GPtrArray *array, gpointer data)
{
  guint i;
  g_return_val_if_fail (array, FALSE);
  for (i = 0; i < array->len; i += 1)
    {
      if (array->pdata[i] == data)
        {
          g_ptr_array_remove_index (array, i);
          return TRUE;
        }
    }
  return FALSE;
}