[evolution-data-server] Bug #652530 - EClient - Notify about opening phase result first



commit b857171bb6fe741d3050be035c840316d8da228b
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 14 13:22:50 2011 +0200

    Bug #652530 - EClient - Notify about opening phase result first

 addressbook/libedata-book/e-book-backend.c |    6 +++---
 calendar/libedata-cal/e-cal-backend.c      |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index d5dfeb0..358f489 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -1263,8 +1263,8 @@ e_book_backend_notify_opened (EBookBackend *backend, GError *error)
  *
  * This is a replacement for e_data_book_respond_open() for cases where
  * the finish of 'open' method call also finishes backend opening phase.
- * This function covers calling of both e_data_book_respond_open() and
- * e_book_backend_notify_opened() with the same @error.
+ * This function covers calling of both e_book_backend_notify_opened()
+ * and e_data_book_respond_open() with the same @error.
  *
  * See e_book_backend_open() for more details how the opening phase works.
  **/
@@ -1281,6 +1281,6 @@ e_book_backend_respond_opened (EBookBackend *backend, EDataBook *book, guint32 o
 	if (error)
 		copy = g_error_copy (error);
 
-	e_data_book_respond_open (book, opid, error);
 	e_book_backend_notify_opened (backend, copy);
+	e_data_book_respond_open (book, opid, error);
 }
diff --git a/calendar/libedata-cal/e-cal-backend.c b/calendar/libedata-cal/e-cal-backend.c
index 2fcb4de..f2174f8 100644
--- a/calendar/libedata-cal/e-cal-backend.c
+++ b/calendar/libedata-cal/e-cal-backend.c
@@ -1765,8 +1765,8 @@ e_cal_backend_notify_opened (ECalBackend *backend, GError *error)
  *
  * This is a replacement for e_data_cal_respond_open() for cases where
  * the finish of 'open' method call also finishes backend opening phase.
- * This function covers calling of both e_data_cal_respond_open() and
- * e_cal_backend_notify_opened() with the same @error.
+ * This function covers calling of both e_cal_backend_notify_opened() and
+ * e_data_cal_respond_open() with the same @error.
  *
  * See e_cal_backend_open() for more details how the opening phase works.
  **/
@@ -1783,8 +1783,8 @@ e_cal_backend_respond_opened (ECalBackend *backend, EDataCal *cal, guint32 opid,
 	if (error)
 		copy = g_error_copy (error);
 
-	e_data_cal_respond_open (cal, opid, error);
 	e_cal_backend_notify_opened (backend, copy);
+	e_data_cal_respond_open (cal, opid, error);
 }
 
 /**



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