Commit 8b446f8d authored by Christian Hergert's avatar Christian Hergert
Browse files

object: more tracing and remove invalid types

parent 12f2e756
......@@ -382,7 +382,7 @@ static void
ide_object_new_for_extension_async_try_next (GTask *task)
InitExtensionAsyncState *state;
IdeBuildSystem *build_system;
GAsyncInitable *initable;
g_assert (G_IS_TASK (task));
......@@ -397,9 +397,11 @@ ide_object_new_for_extension_async_try_next (GTask *task)
build_system = g_ptr_array_index (state->plugins, state->position++);
initable = g_ptr_array_index (state->plugins, state->position++);
g_async_initable_init_async (G_ASYNC_INITABLE (build_system),
IDE_TRACE_MSG ("Initializing object of type %s", G_OBJECT_TYPE_NAME (initable));
g_async_initable_init_async (initable,
g_task_get_cancellable (task),
......@@ -449,6 +451,14 @@ ide_object_new_for_extension_async (GType interface_gtype,
if (sort_priority_func != NULL)
g_ptr_array_sort_with_data (state->plugins, sort_priority_func, sort_priority_data);
for (guint i = 0; i < state->plugins->len; i++)
gpointer instance = g_ptr_array_index (state->plugins, i);
IDE_TRACE_MSG (" Plugin[%u] = %s", i, G_OBJECT_TYPE_NAME (instance));
g_task_set_task_data (task, state, extension_async_state_free);
ide_object_new_for_extension_async_try_next (task);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment