|
|
7486de |
From f17c21fc97e465b86ed27acceeea331624e66cd6 Mon Sep 17 00:00:00 2001
|
|
|
7486de |
From: Debarshi Ray <debarshir@gnome.org>
|
|
|
7486de |
Date: Thu, 22 Apr 2021 01:51:52 +0200
|
|
|
7486de |
Subject: [PATCH] google: Remove Photos support
|
|
|
7486de |
|
|
|
7486de |
In theory, support for photos is still desired. However, right now the
|
|
|
7486de |
implementation of the Google PicasaWeb API in libgdata no longer works.
|
|
|
7486de |
Until that's fixed, there's no point in advertising support for photos.
|
|
|
7486de |
|
|
|
7486de |
https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/63
|
|
|
7486de |
https://bugzilla.redhat.com/show_bug.cgi?id=1913641
|
|
|
7486de |
---
|
|
|
7486de |
src/goabackend/goagoogleprovider.c | 15 ---------------
|
|
|
7486de |
1 file changed, 15 deletions(-)
|
|
|
7486de |
|
|
|
7486de |
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
|
|
|
7486de |
index 9332c0fdca0b..b3c0f8fdcc66 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_PHOTOS |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_FILES |
|
|
|
7486de |
GOA_PROVIDER_FEATURE_PRINTERS;
|
|
|
7486de |
}
|
|
|
7486de |
@@ -117,9 +116,6 @@ get_scope (GoaOAuth2Provider *oauth2_provider)
|
|
|
7486de |
"https://docs.googleusercontent.com/ "
|
|
|
7486de |
"https://spreadsheets.google.com/feeds/ "
|
|
|
7486de |
|
|
|
7486de |
- /* Google PicasaWeb API (GData) */
|
|
|
7486de |
- "https://picasaweb.google.com/data/ "
|
|
|
7486de |
-
|
|
|
7486de |
/* GMail IMAP and SMTP access */
|
|
|
7486de |
"https://mail.google.com/ "
|
|
|
7486de |
|
|
|
7486de |
@@ -281,7 +277,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
gboolean calendar_enabled;
|
|
|
7486de |
gboolean contacts_enabled;
|
|
|
7486de |
gboolean files_enabled;
|
|
|
7486de |
- gboolean photos_enabled;
|
|
|
7486de |
gboolean printers_enabled;
|
|
|
7486de |
const gchar *email_address;
|
|
|
7486de |
|
|
|
7486de |
@@ -342,10 +337,6 @@ build_object (GoaProvider *provider,
|
|
|
7486de |
contacts_enabled,
|
|
|
7486de |
FALSE);
|
|
|
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 |
-
|
|
|
7486de |
/* Files */
|
|
|
7486de |
files_enabled = g_key_file_get_boolean (key_file, group, "FilesEnabled", NULL);
|
|
|
7486de |
uri_drive = g_strconcat ("google-drive://", email_address, "/", NULL);
|
|
|
7486de |
@@ -361,7 +352,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_photos_disabled (account, !photos_enabled);
|
|
|
7486de |
goa_account_set_files_disabled (account, !files_enabled);
|
|
|
7486de |
goa_account_set_printers_disabled (account, !printers_enabled);
|
|
|
7486de |
|
|
|
7486de |
@@ -377,10 +367,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::photos-disabled",
|
|
|
7486de |
- G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
- (gpointer) "PhotosEnabled");
|
|
|
7486de |
g_signal_connect (account,
|
|
|
7486de |
"notify::files-disabled",
|
|
|
7486de |
G_CALLBACK (goa_util_account_notify_property_cb),
|
|
|
7486de |
@@ -408,7 +394,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}", "PhotosEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "FilesEnabled", "true");
|
|
|
7486de |
g_variant_builder_add (builder, "{ss}", "PrintersEnabled", "true");
|
|
|
7486de |
}
|
|
|
7486de |
--
|
|
|
7486de |
2.30.2
|
|
|
7486de |
|