[gnome-photos/wip/uajain/de_dup: 10/11] photos-application: Mark application as busy while uploading



commit 7d6e8e0c5e855649c947b86e9365b8a85e13ef35
Author: Umang Jain <mailumangjain gmail com>
Date:   Sun Jul 10 00:58:29 2016 +0530

    photos-application: Mark application as busy while uploading
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751181

 src/photos-application.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 65e63e8..d1ed60d 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1233,6 +1233,7 @@ photos_application_item_shared (GObject *source_object, GAsyncResult *res, gpoin
       goto out;
     }
 
+  g_application_unmark_busy (G_APPLICATION (self));
 out:
   g_application_release (G_APPLICATION (self));
 }
@@ -1255,6 +1256,7 @@ photos_application_share_response (GtkDialog *dialog, gint response_id, gpointer
   g_return_if_fail (item != NULL);
 
   g_application_hold (G_APPLICATION (self));
+  g_application_mark_busy (G_APPLICATION (self));
   photos_share_point_share_async (share_point, item, NULL, photos_application_item_shared, self);
 out:
   gtk_widget_destroy (GTK_WIDGET (dialog));


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