|
|
7486de |
From 0820053ff418bf64db56fa8e63133c3d2e504807 Mon Sep 17 00:00:00 2001
|
|
|
7486de |
From: Debarshi Ray <debarshir@gnome.org>
|
|
|
7486de |
Date: Fri, 23 Nov 2018 14:07:09 +0100
|
|
|
7486de |
Subject: [PATCH] Remove Documents support
|
|
|
7486de |
|
|
|
7486de |
In theory, online integration for documents is still desired. However,
|
|
|
7486de |
these days, GNOME Documents is weekly maintained and doesn't receive
|
|
|
7486de |
much attention from designers and developers. Therefore, it needs to be
|
|
|
7486de |
withdrawn from the set of core applications until the situation
|
|
|
7486de |
changes.
|
|
|
7486de |
|
|
|
7486de |
https://pagure.io/fedora-workstation/issue/83
|
|
|
7486de |
---
|
|
|
7486de |
data/dbus-interfaces.xml | 3 +++
|
|
|
7486de |
src/goabackend/goabackendenums.h | 2 +-
|
|
|
7486de |
src/goabackend/goagoogleprovider.c | 12 ------------
|
|
|
7486de |
src/goabackend/goaobjectskeletonutils.c | 23 -----------------------
|
|
|
7486de |
src/goabackend/goaobjectskeletonutils.h | 3 ---
|
|
|
7486de |
src/goabackend/goaowncloudprovider.c | 12 ------------
|
|
|
7486de |
src/goabackend/goawindowsliveprovider.c | 17 ++---------------
|
|
|
7486de |
7 files changed, 6 insertions(+), 66 deletions(-)
|
|
|
7486de |
|
|
|
7486de |
diff --git a/data/dbus-interfaces.xml b/data/dbus-interfaces.xml
|
|
|
7486de |
index 21c42c13d003..072d6aaca3b6 100644
|
|
|
7486de |
--- a/data/dbus-interfaces.xml
|
|
|
7486de |
+++ b/data/dbus-interfaces.xml
|
|
|
7486de |
@@ -668,6 +668,9 @@
|
|
|
7486de |
|
|
|
7486de |
An account object implements this interface if it provides
|
|
|
7486de |
documents-like capabilities.
|
|
|
7486de |
+
|
|
|
7486de |
+ The #org.gnome.OnlineAccounts.Documents interface is not used
|
|
|
7486de |
+ by any account.
|
|
|
7486de |
-->
|
|
|
7486de |
<interface name="org.gnome.OnlineAccounts.Documents">
|
|
|
7486de |
</interface>
|
|
|
7486de |
diff --git a/src/goabackend/goabackendenums.h b/src/goabackend/goabackendenums.h
|
|
|
7486de |
index 638674aaf4e0..38f46fa8c193 100644
|
|
|
7486de |
--- a/src/goabackend/goabackendenums.h
|
|
|
7486de |
+++ b/src/goabackend/goabackendenums.h
|
|
|
7486de |
@@ -63,7 +63,7 @@ typedef enum
|
|
|
7486de |
* @GOA_PROVIDER_FEATURE_CALENDAR: Calendaring services (ie. CalDAV).
|
|
|
7486de |
* @GOA_PROVIDER_FEATURE_CONTACTS: Addressbook services (ie. CardDAV).
|
|
|
7486de |
* @GOA_PROVIDER_FEATURE_CHAT: Instant messaging services (ie. XMPP, IRC).
|
|
|
7486de |
- * @GOA_PROVIDER_FEATURE_DOCUMENTS: Documents storage services (ie. Google Documents).
|
|
|
7486de |
+ * @GOA_PROVIDER_FEATURE_DOCUMENTS: Documents storage services (ie. Google Documents); currently unused.
|
|
|
7486de |
* @GOA_PROVIDER_FEATURE_PHOTOS: Photos storage services (ie. Flickr).
|
|
|
7486de |
* @GOA_PROVIDER_FEATURE_FILES: Files storage services (ie. WebDAV).
|
|
|
7486de |
* @GOA_PROVIDER_FEATURE_TICKETING: Ticketing services (ie. Kerberos).
|
|
|
7486de |
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
|
|
|
7486de |
index 9e331c110119..9332c0fdca0b 100644
|
|
|
7486de |
--- a/src/goabackend/goagoogleprovider.c
|
|
|
7486de |
+++ b/src/goabackend/goagoogleprovider.c
|
|
|
7486de |
@@ -69,7 +69,6 @@ get_provider_features (GoaProvider *provider)
|
|
|
7486de |
GOA_PROVIDER_FEATURE_MAIL |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_CALENDAR |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_CONTACTS |
|
|
|
7486de |
- GOA_PROVIDER_FEATURE_DOCUMENTS |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_PHOTOS |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_FILES |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_PRINTERS;
|
|
|
7486de |
@@ -281,7 +280,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
gboolean mail_enabled;
|
|
|
7486de |
gboolean calendar_enabled;
|
|
|
7486de |
gboolean contacts_enabled;
|
|
|
7486de |
- gboolean documents_enabled;
|
|
|
7486de |
gboolean files_enabled;
|
|
|
7486de |
gboolean photos_enabled;
|
|
|
7486de |
gboolean printers_enabled;
|
|
|
7486de |
@@ -344,10 +342,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
contacts_enabled,
|
|
|
7486de |
FALSE);
|
|
|
7486de |
|
|
|
7486de |
- /* Documents */
|
|
|
7486de |
- documents_enabled = g_key_file_get_boolean (key_file, group, "DocumentsEnabled", NULL);
|
|
|
7486de |
- goa_object_skeleton_attach_documents (object, documents_enabled);
|
|
|
7486de |
-
|
|
|
7486de |
/* Photos */
|
|
|
7486de |
photos_enabled = g_key_file_get_boolean (key_file, group, "PhotosEnabled", NULL);
|
|
|
7486de |
goa_object_skeleton_attach_photos (object, photos_enabled);
|
|
|
7486de |
@@ -367,7 +361,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
goa_account_set_mail_disabled (account, !mail_enabled);
|
|
|
7486de |
goa_account_set_calendar_disabled (account, !calendar_enabled);
|
|
|
7486de |
goa_account_set_contacts_disabled (account, !contacts_enabled);
|
|
|
7486de |
- goa_account_set_documents_disabled (account, !documents_enabled);
|
|
|
7486de |
goa_account_set_photos_disabled (account, !photos_enabled);
|
|
|
7486de |
goa_account_set_files_disabled (account, !files_enabled);
|
|
|
7486de |
goa_account_set_printers_disabled (account, !printers_enabled);
|
|
|
7486de |
@@ -384,10 +377,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
"notify::contacts-disabled",
|
|
|
7486de |
G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
(gpointer) "ContactsEnabled");
|
|
|
7486de |
- g_signal_connect (account,
|
|
|
7486de |
- "notify::documents-disabled",
|
|
|
7486de |
- G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
- (gpointer) "DocumentsEnabled");
|
|
|
7486de |
g_signal_connect (account,
|
|
|
7486de |
"notify::photos-disabled",
|
|
|
7486de |
G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
@@ -419,7 +408,6 @@ add_account_key_values (GoaOAuth2Provider *oauth2_provider,
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "MailEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "CalendarEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "ContactsEnabled", "true");
|
|
|
7486de |
- g_variant_builder_add (builder, "{ss}", "DocumentsEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "PhotosEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "FilesEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "PrintersEnabled", "true");
|
|
|
7486de |
diff --git a/src/goabackend/goaobjectskeletonutils.c b/src/goabackend/goaobjectskeletonutils.c
|
|
|
7486de |
index 657bffd712f3..610c6ee26233 100644
|
|
|
7486de |
--- a/src/goabackend/goaobjectskeletonutils.c
|
|
|
7486de |
+++ b/src/goabackend/goaobjectskeletonutils.c
|
|
|
7486de |
@@ -109,29 +109,6 @@ goa_object_skeleton_attach_contacts (GoaObjectSkeleton *object,
|
|
|
7486de |
g_clear_object (&contacts);
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
-void
|
|
|
7486de |
-goa_object_skeleton_attach_documents (GoaObjectSkeleton *object,
|
|
|
7486de |
- gboolean documents_enabled)
|
|
|
7486de |
-{
|
|
|
7486de |
- GoaDocuments *documents;
|
|
|
7486de |
-
|
|
|
7486de |
- documents = goa_object_get_documents (GOA_OBJECT (object));
|
|
|
7486de |
- if (documents_enabled)
|
|
|
7486de |
- {
|
|
|
7486de |
- if (documents == NULL)
|
|
|
7486de |
- {
|
|
|
7486de |
- documents = goa_documents_skeleton_new ();
|
|
|
7486de |
- goa_object_skeleton_set_documents (object, documents);
|
|
|
7486de |
- }
|
|
|
7486de |
- }
|
|
|
7486de |
- else
|
|
|
7486de |
- {
|
|
|
7486de |
- if (documents != NULL)
|
|
|
7486de |
- goa_object_skeleton_set_documents (object, NULL);
|
|
|
7486de |
- }
|
|
|
7486de |
- g_clear_object (&documents);
|
|
|
7486de |
-}
|
|
|
7486de |
-
|
|
|
7486de |
void
|
|
|
7486de |
goa_object_skeleton_attach_photos (GoaObjectSkeleton *object,
|
|
|
7486de |
gboolean photos_enabled)
|
|
|
7486de |
diff --git a/src/goabackend/goaobjectskeletonutils.h b/src/goabackend/goaobjectskeletonutils.h
|
|
|
7486de |
index 699695285028..6bc413c38f55 100644
|
|
|
7486de |
--- a/src/goabackend/goaobjectskeletonutils.h
|
|
|
7486de |
+++ b/src/goabackend/goaobjectskeletonutils.h
|
|
|
7486de |
@@ -38,9 +38,6 @@ void goa_object_skeleton_attach_contacts (GoaObjectSkeleton *o
|
|
|
7486de |
gboolean contacts_enabled,
|
|
|
7486de |
gboolean accept_ssl_errors);
|
|
|
7486de |
|
|
|
7486de |
-void goa_object_skeleton_attach_documents (GoaObjectSkeleton *object,
|
|
|
7486de |
- gboolean documents_enabled);
|
|
|
7486de |
-
|
|
|
7486de |
void goa_object_skeleton_attach_files (GoaObjectSkeleton *object,
|
|
|
7486de |
const gchar *uri,
|
|
|
7486de |
gboolean files_enabled,
|
|
|
7486de |
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
|
|
|
7486de |
index 29d461a880d8..d1429661fe2e 100644
|
|
|
7486de |
--- a/src/goabackend/goaowncloudprovider.c
|
|
|
7486de |
+++ b/src/goabackend/goaowncloudprovider.c
|
|
|
7486de |
@@ -72,7 +72,6 @@ get_provider_features (GoaProvider *provider)
|
|
|
7486de |
return GOA_PROVIDER_FEATURE_BRANDED |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_CALENDAR |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_CONTACTS |
|
|
|
7486de |
- GOA_PROVIDER_FEATURE_DOCUMENTS |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_FILES;
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
@@ -145,7 +144,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
gboolean accept_ssl_errors;
|
|
|
7486de |
gboolean calendar_enabled;
|
|
|
7486de |
gboolean contacts_enabled;
|
|
|
7486de |
- gboolean documents_enabled;
|
|
|
7486de |
gboolean files_enabled;
|
|
|
7486de |
gboolean ret = FALSE;
|
|
|
7486de |
const gchar *identity;
|
|
|
7486de |
@@ -196,10 +194,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
goa_object_skeleton_attach_contacts (object, uri_carddav, contacts_enabled, accept_ssl_errors);
|
|
|
7486de |
g_free (uri_carddav);
|
|
|
7486de |
|
|
|
7486de |
- /* Documents */
|
|
|
7486de |
- documents_enabled = g_key_file_get_boolean (key_file, group, "DocumentsEnabled", NULL);
|
|
|
7486de |
- goa_object_skeleton_attach_documents (object, documents_enabled);
|
|
|
7486de |
-
|
|
|
7486de |
/* Files */
|
|
|
7486de |
files_enabled = g_key_file_get_boolean (key_file, group, "FilesEnabled", NULL);
|
|
|
7486de |
uri_webdav = get_webdav_uri (uri);
|
|
|
7486de |
@@ -210,7 +204,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
{
|
|
|
7486de |
goa_account_set_calendar_disabled (account, !calendar_enabled);
|
|
|
7486de |
goa_account_set_contacts_disabled (account, !contacts_enabled);
|
|
|
7486de |
- goa_account_set_documents_disabled (account, !documents_enabled);
|
|
|
7486de |
goa_account_set_files_disabled (account, !files_enabled);
|
|
|
7486de |
|
|
|
7486de |
g_signal_connect (account,
|
|
|
7486de |
@@ -221,10 +214,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
"notify::contacts-disabled",
|
|
|
7486de |
G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
(gpointer) "ContactsEnabled");
|
|
|
7486de |
- g_signal_connect (account,
|
|
|
7486de |
- "notify::documents-disabled",
|
|
|
7486de |
- G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
- (gpointer) "DocumentsEnabled");
|
|
|
7486de |
g_signal_connect (account,
|
|
|
7486de |
"notify::files-disabled",
|
|
|
7486de |
G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
@@ -750,7 +739,6 @@ add_account (GoaProvider *provider,
|
|
|
7486de |
g_variant_builder_init (&details, G_VARIANT_TYPE ("a{ss}"));
|
|
|
7486de |
g_variant_builder_add (&details, "{ss}", "CalendarEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (&details, "{ss}", "ContactsEnabled", "true");
|
|
|
7486de |
- g_variant_builder_add (&details, "{ss}", "DocumentsEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (&details, "{ss}", "FilesEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (&details, "{ss}", "Uri", uri);
|
|
|
7486de |
g_variant_builder_add (&details, "{ss}", "AcceptSslErrors", (accept_ssl_errors) ? "true" : "false");
|
|
|
7486de |
diff --git a/src/goabackend/goawindowsliveprovider.c b/src/goabackend/goawindowsliveprovider.c
|
|
|
7486de |
index 10c2dcff4738..be357465230a 100644
|
|
|
7486de |
--- a/src/goabackend/goawindowsliveprovider.c
|
|
|
7486de |
+++ b/src/goabackend/goawindowsliveprovider.c
|
|
|
7486de |
@@ -73,8 +73,7 @@ static GoaProviderFeatures
|
|
|
7486de |
get_provider_features (GoaProvider *provider)
|
|
|
7486de |
{
|
|
|
7486de |
return GOA_PROVIDER_FEATURE_BRANDED |
|
|
|
7486de |
- GOA_PROVIDER_FEATURE_MAIL |
|
|
|
7486de |
- GOA_PROVIDER_FEATURE_DOCUMENTS;
|
|
|
7486de |
+ GOA_PROVIDER_FEATURE_MAIL;
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
static const gchar *
|
|
|
7486de |
@@ -102,14 +101,13 @@ get_scope (GoaOAuth2Provider *oauth2_provider)
|
|
|
7486de |
{
|
|
|
7486de |
return "wl.imap,"
|
|
|
7486de |
"wl.offline_access,"
|
|
|
7486de |
- "wl.skydrive_update,"
|
|
|
7486de |
"wl.emails";
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
static guint
|
|
|
7486de |
get_credentials_generation (GoaProvider *provider)
|
|
|
7486de |
{
|
|
|
7486de |
- return 3;
|
|
|
7486de |
+ return 4;
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
static const gchar *
|
|
|
7486de |
@@ -276,7 +274,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
GoaAccount *account = NULL;
|
|
|
7486de |
GoaMail *mail = NULL;
|
|
|
7486de |
gboolean mail_enabled;
|
|
|
7486de |
- gboolean documents_enabled;
|
|
|
7486de |
gboolean ret = FALSE;
|
|
|
7486de |
const gchar *email_address;
|
|
|
7486de |
|
|
|
7486de |
@@ -323,23 +320,14 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
goa_object_skeleton_set_mail (object, NULL);
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
- /* Documents */
|
|
|
7486de |
- documents_enabled = g_key_file_get_boolean (key_file, group, "DocumentsEnabled", NULL);
|
|
|
7486de |
- goa_object_skeleton_attach_documents (object, documents_enabled);
|
|
|
7486de |
-
|
|
|
7486de |
if (just_added)
|
|
|
7486de |
{
|
|
|
7486de |
goa_account_set_mail_disabled (account, !mail_enabled);
|
|
|
7486de |
- goa_account_set_documents_disabled (account, !documents_enabled);
|
|
|
7486de |
|
|
|
7486de |
g_signal_connect (account,
|
|
|
7486de |
"notify::mail-disabled",
|
|
|
7486de |
G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
(gpointer) "MailEnabled");
|
|
|
7486de |
- g_signal_connect (account,
|
|
|
7486de |
- "notify::documents-disabled",
|
|
|
7486de |
- G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
- (gpointer) "DocumentsEnabled");
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
ret = TRUE;
|
|
|
7486de |
@@ -357,7 +345,6 @@ add_account_key_values (GoaOAuth2Provider *oauth2_provider,
|
|
|
7486de |
GVariantBuilder *builder)
|
|
|
7486de |
{
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "MailEnabled", "true");
|
|
|
7486de |
- g_variant_builder_add (builder, "{ss}", "DocumentsEnabled", "true");
|
|
|
7486de |
}
|
|
|
7486de |
|
|
|
7486de |
/* ---------------------------------------------------------------------------------------------------- */
|
|
|
7486de |
--
|
|
|
7486de |
2.30.2
|
|
|
7486de |
|