[evolution-data-server] EBookBackend: Minor code rearrangement.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EBookBackend: Minor code rearrangement.
- Date: Sat, 6 Apr 2013 17:32:48 +0000 (UTC)
commit ed8b39b915b6a700186f31c44f2588e565944f97
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Apr 6 12:48:53 2013 -0400
EBookBackend: Minor code rearrangement.
addressbook/libedata-book/e-book-backend.c | 74 ++++++++++++++--------------
1 files changed, 37 insertions(+), 37 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index ebe1da3..39df4a3 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -307,43 +307,6 @@ book_backend_set_default_cache_dir (EBookBackend *backend)
g_free (filename);
}
-static gchar *
-book_backend_get_backend_property (EBookBackend *backend,
- const gchar *prop_name)
-{
- gchar *prop_value = NULL;
-
- g_return_val_if_fail (E_IS_BOOK_BACKEND (backend), NULL);
- g_return_val_if_fail (prop_name != NULL, NULL);
-
- if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENED)) {
- prop_value = g_strdup ("TRUE");
-
- } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENING)) {
- prop_value = g_strdup ("FALSE");
-
- } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_REVISION)) {
- prop_value = g_strdup ("0");
-
- } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_ONLINE)) {
- gboolean online;
-
- online = e_backend_get_online (E_BACKEND (backend));
- prop_value = g_strdup (online ? "TRUE" : "FALSE");
-
- } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_READONLY)) {
- gboolean readonly;
-
- readonly = e_book_backend_is_readonly (backend);
- prop_value = g_strdup (readonly ? "TRUE" : "FALSE");
-
- } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_CACHE_DIR)) {
- prop_value = e_book_backend_dup_cache_dir (backend);
- }
-
- return prop_value;
-}
-
static void
book_backend_set_registry (EBookBackend *backend,
ESourceRegistry *registry)
@@ -485,6 +448,43 @@ book_backend_authenticate_sync (EBackend *backend,
registry, source, auth, cancellable, error);
}
+static gchar *
+book_backend_get_backend_property (EBookBackend *backend,
+ const gchar *prop_name)
+{
+ gchar *prop_value = NULL;
+
+ g_return_val_if_fail (E_IS_BOOK_BACKEND (backend), NULL);
+ g_return_val_if_fail (prop_name != NULL, NULL);
+
+ if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENED)) {
+ prop_value = g_strdup ("TRUE");
+
+ } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_OPENING)) {
+ prop_value = g_strdup ("FALSE");
+
+ } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_REVISION)) {
+ prop_value = g_strdup ("0");
+
+ } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_ONLINE)) {
+ gboolean online;
+
+ online = e_backend_get_online (E_BACKEND (backend));
+ prop_value = g_strdup (online ? "TRUE" : "FALSE");
+
+ } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_READONLY)) {
+ gboolean readonly;
+
+ readonly = e_book_backend_is_readonly (backend);
+ prop_value = g_strdup (readonly ? "TRUE" : "FALSE");
+
+ } else if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_CACHE_DIR)) {
+ prop_value = e_book_backend_dup_cache_dir (backend);
+ }
+
+ return prop_value;
+}
+
static void
book_backend_notify_update (EBookBackend *backend,
const EContact *contact)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]