[gnome-builder/wip/project-selector: 39/56] app: mark busy when loading context



commit 9f8c84a8b54c17eeb20dea3d1023a8de857da172
Author: Christian Hergert <christian hergert me>
Date:   Thu Apr 2 21:32:54 2015 -0700

    app: mark busy when loading context

 src/app/gb-application.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 52300df..bcd2245 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -398,6 +398,7 @@ gb_application__context_new_cb (GObject      *object,
 
 cleanup:
   g_task_return_boolean (task, FALSE);
+  g_application_unmark_busy (G_APPLICATION (self));
   g_application_release (G_APPLICATION (self));
 }
 
@@ -454,6 +455,7 @@ gb_application_open_project (GbApplication *self,
   else
     directory = g_file_get_parent (file);
 
+  g_application_mark_busy (G_APPLICATION (self));
   g_application_hold (G_APPLICATION (self));
 
   ide_context_new_async (directory,


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