[evolution-data-server/openismus-work-3-8] Addressbook: Flushing DBus properties after setting new locale.



commit 7656da4713b236568c0eefcd3be8371522522ffd
Author: Mateusz Polrola <mateuszx potrola intel com>
Date:   Fri Feb 21 09:02:55 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.
    
    (cherry picked from commit 69e94310c5dc8a55ff311f86e3fc40b59ea6fba3)

 addressbook/libedata-book/e-data-book.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index f45da7a..1b91bce 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -2554,8 +2554,10 @@ e_data_book_set_locale (EDataBook *book,
                                             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);
+       }
 
        return success;
 }


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