[shotwell/wip/phako/enhanced-faces: 16/17] facedetect: Fix terminate() call



commit 8b062367e434c719c12adc676a4dceb82d015ba8
Author: Jens Georg <mail jensge org>
Date:   Thu Oct 11 13:10:11 2018 +0200

    facedetect: Fix terminate() call

 subprojects/shotwell-facedetect/shotwell-facedetect.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/subprojects/shotwell-facedetect/shotwell-facedetect.cpp 
b/subprojects/shotwell-facedetect/shotwell-facedetect.cpp
index 6a3dd077..a0356465 100644
--- a/subprojects/shotwell-facedetect/shotwell-facedetect.cpp
+++ b/subprojects/shotwell-facedetect/shotwell-facedetect.cpp
@@ -73,9 +73,12 @@ static gboolean on_handle_face_to_vec(ShotwellFaces1 *object,
 }
 
 static gboolean on_handle_terminate(ShotwellFaces1 *object,
-                                    GDBusMethodInvocation *invocation) {
+                                    GDBusMethodInvocation *invocation,
+                                    gpointer user_data) {
     g_debug("Exiting...");
     shotwell_faces1_complete_terminate(object, invocation);
+    g_main_loop_quit(reinterpret_cast<GMainLoop *>(user_data));
+
     return TRUE;
 }
 


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