static void g_ptr_array_insert (GPtrArray * array, guint index, gpointer data) { if (index + 1 > array->len) { g_ptr_array_set_size (array, index + 1);
} array->pdata[index] = data; }