[gnome-builder/wip/libide: 47/237] libide: load GFile in IdeDirectoryVcs and assign to IdeProjectFile.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide: 47/237] libide: load GFile in IdeDirectoryVcs and assign to IdeProjectFile.
- Date: Tue, 17 Feb 2015 21:33:22 +0000 (UTC)
commit 87dd6705de7dac93ba386954e1955de55d5f334f
Author: Christian Hergert <christian hergert me>
Date: Sat Feb 7 19:40:19 2015 -0800
libide: load GFile in IdeDirectoryVcs and assign to IdeProjectFile.
libide/tasks/ide-load-directory-task.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libide/tasks/ide-load-directory-task.c b/libide/tasks/ide-load-directory-task.c
index 33901df..39128e8 100644
--- a/libide/tasks/ide-load-directory-task.c
+++ b/libide/tasks/ide-load-directory-task.c
@@ -153,15 +153,16 @@ next_files_cb (GObject *object,
if (state->file_count >= state->max_files)
goto cleanup;
+ file = g_file_enumerator_get_child (enumerator, file_info);
+
item = g_object_new (IDE_TYPE_PROJECT_FILE,
"context", context,
+ "file", file,
"file-info", file_info,
"parent", parent,
NULL);
ide_project_item_append (parent, item);
- file = g_file_enumerator_get_child (enumerator, file_info);
-
if (file_type == G_FILE_TYPE_DIRECTORY)
{
g_hash_table_insert (state->project_items,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]