[evolution-data-server/evolution-data-server-3-12] Do not define EBackend::online as G_PARAM_CONSTRUCT
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/evolution-data-server-3-12] Do not define EBackend::online as G_PARAM_CONSTRUCT
- Date: Fri, 10 Oct 2014 12:38:56 +0000 (UTC)
commit 12b904c91e047b012e4bade344ee72ef2cb75144
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 7be521b..d3189d5 100644
--- a/libebackend/e-backend.c
+++ b/libebackend/e-backend.c
@@ -519,7 +519,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 (
@@ -555,6 +554,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]