Commit 66c50a32 authored by Edric Milaret's avatar Edric Milaret Committed by Stepan Salenikovich

gnome: fix compilation on gnome 3.16.1

Refs #72584

Change-Id: I975c2423f973c1bd834a95f796bf5e8d797bc905
parent 6e7b092f
...@@ -67,9 +67,14 @@ registry_cb(G_GNUC_UNUSED GObject *source, GAsyncResult *result, GCancellable *c ...@@ -67,9 +67,14 @@ registry_cb(G_GNUC_UNUSED GObject *source, GAsyncResult *result, GCancellable *c
ESource *source = E_SOURCE(l->data); ESource *source = E_SOURCE(l->data);
/* try to connect to each source ansynch */ /* try to connect to each source ansynch */
#if EDS_CHECK_VERSION(3,16,0) #if EDS_CHECK_VERSION(3,16,0)
e_book_client_connect(source, WAIT_FOR_CONNECTED_SECONDS, cancellable, (GAsyncReadyCallback)client_cb, NULL); e_book_client_connect(source,
#endif EdsContactBackend::WAIT_FOR_CONNECTED_SECONDS,
cancellable,
(GAsyncReadyCallback)client_cb,
NULL);
#else
e_book_client_connect(source, cancellable, (GAsyncReadyCallback)client_cb, NULL); e_book_client_connect(source, cancellable, (GAsyncReadyCallback)client_cb, NULL);
#endif
} }
g_list_free_full(list, g_object_unref); g_list_free_full(list, g_object_unref);
......
...@@ -69,7 +69,7 @@ public: ...@@ -69,7 +69,7 @@ public:
* authentication requests. In case the backend will not connect within the * authentication requests. In case the backend will not connect within the
* set interval, then it is opened in an offline mode. A special value -1 * set interval, then it is opened in an offline mode. A special value -1
* can be used to not wait for the connected state at all. * can be used to not wait for the connected state at all.
* */ */
constexpr static guint32 WAIT_FOR_CONNECTED_SECONDS {5}; constexpr static guint32 WAIT_FOR_CONNECTED_SECONDS {5};
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment