[evolution-data-server] Do not define EBackend::online as G_PARAM_CONSTRUCT



commit db3eb569f5637d7938856907885c0e1cc0c6281f
Author: Milan Crha <mcrha redhat com>
Date:   Fri Oct 10 14:33:38 2014 +0200

    Do not define EBackend::online as G_PARAM_CONSTRUCT
    
    This means that the notify::online are invoked (newly?) also during
    the construction time, which calls the listeners, but they might not
    be fully ready, because it is before the 'constructed' method call.
    This is partly discussed at bug 737773.

 libebackend/e-backend.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libebackend/e-backend.c b/libebackend/e-backend.c
index 18ee2f2..e2d7cab 100644
--- a/libebackend/e-backend.c
+++ b/libebackend/e-backend.c
@@ -525,7 +525,6 @@ e_backend_class_init (EBackendClass *class)
                        "Whether the backend is online",
                        TRUE,
                        G_PARAM_READWRITE |
-                       G_PARAM_CONSTRUCT |
                        G_PARAM_STATIC_STRINGS));
 
        g_object_class_install_property (
@@ -561,6 +560,7 @@ e_backend_init (EBackend *backend)
        backend->priv = E_BACKEND_GET_PRIVATE (backend);
        backend->priv->prompter = e_user_prompter_new ();
        backend->priv->main_context = g_main_context_ref_thread_default ();
+       backend->priv->online = TRUE;
 
        g_mutex_init (&backend->priv->property_lock);
        g_mutex_init (&backend->priv->update_online_state_lock);


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