[anjuta] dir-project: Decrease project load priority to avoid blocking GUI



commit 266e6aac9eae75c99be2dbd5da909065a8c1afe2
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed Jul 3 21:47:48 2013 +0200

    dir-project: Decrease project load priority to avoid blocking GUI
    
    Loading a big project can take quite some times, decrease the priority to allow
    running the GUI

 plugins/dir-project/dir-project.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
index 924075e..23122d7 100644
--- a/plugins/dir-project/dir-project.c
+++ b/plugins/dir-project/dir-project.c
@@ -744,7 +744,7 @@ dir_project_load_directory_callback (GObject      *source_object,
        }
        g_list_free (infos);
 
-       g_file_enumerator_next_files_async (enumerator, NUM_FILES, G_PRIORITY_DEFAULT, NULL,
+       g_file_enumerator_next_files_async (enumerator, NUM_FILES, G_PRIORITY_DEFAULT_IDLE, NULL,
                                            dir_project_load_directory_callback, data);
 }
 
@@ -778,7 +778,7 @@ dir_project_load_directory (DirProject *project, AnjutaProjectNode *parent, GErr
        data->proj = project;
        data->parent = g_object_ref (parent);
 
-       g_file_enumerator_next_files_async (enumerator, NUM_FILES, G_PRIORITY_DEFAULT, NULL,
+       g_file_enumerator_next_files_async (enumerator, NUM_FILES, G_PRIORITY_DEFAULT_IDLE, NULL,
                                            dir_project_load_directory_callback, data);
 
        anjuta_project_node_set_state (parent, ANJUTA_PROJECT_LOADING);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]