[evolution-data-server/intel-work-3-12] Addressbook: Notify views after locale change
- From: Mateusz Polrola <mpolrola src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/intel-work-3-12] Addressbook: Notify views after locale change
- Date: Wed, 9 Jul 2014 10:04:55 +0000 (UTC)
commit 537d8fe04e02043c8d75dad996f5830926b77fd8
Author: Mateusz Polrola <mateusz polrola gmail com>
Date: Wed Jul 9 11:59:22 2014 +0200
Addressbook: Notify views after locale change
After changing locale, views of EBookBackend are not notified about
modifications made during that operation. Changing locale of
EBookBackend may result in updating EVC_X_E164 parameter of phone
numbers as its value depends on currently used locale. Calling
e_book_backend_notify_complete after successfully changing locale
notifies views about possible modifications.
Cherry picked from commit in master:
Bug 732730 - Addressbook: Notify views after locale change 0513c56
Fixes BGO: 732730
addressbook/libedata-book/e-book-backend.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index 07942e8..7f070f4 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -3320,9 +3320,13 @@ e_book_backend_set_locale (EBookBackend *backend,
g_object_ref (backend);
- if (E_BOOK_BACKEND_GET_CLASS (backend)->set_locale)
+ if (E_BOOK_BACKEND_GET_CLASS (backend)->set_locale) {
success = (* E_BOOK_BACKEND_GET_CLASS (backend)->set_locale) (backend, locale,
cancellable, error);
+ if (success)
+ e_book_backend_notify_complete (backend);
+
+ }
g_object_unref (backend);
return success;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]