[evolution-data-server] Addressbook: Flushing DBus properties after setting new locale.



commit 69e94310c5dc8a55ff311f86e3fc40b59ea6fba3
Author: Mateusz Polrola <mateuszx potrola intel com>
Date:   Wed Feb 12 16:06:30 2014 +0100

    Addressbook: Flushing DBus properties after setting new locale.
    
    DBus signals about change of locale property for given address book are
    deferred until all address books will update their locale.
    Depending on the number of address books and their size delay between
    changing address book's locale property and receiving signal about that
    takes about one or two minutes.
    Flushing DBus properties after changing locale property of address book
    causes immediate emission of DBus signal.

 addressbook/libedata-book/e-data-book.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index 6f3b2c7..f2dc1f2 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -2162,9 +2162,12 @@ e_data_book_set_locale (EDataBook *book,
        success = e_book_backend_set_locale (
                backend, locale, cancellable, error);
 
-       if (success)
+       if (success) {
                e_dbus_address_book_set_locale (
                        book->priv->dbus_interface, locale);
+               g_dbus_interface_skeleton_flush (
+                       book->priv->dbus_interface);
+       }
 
        g_object_unref (backend);
 


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