[gthumb] picasaweb: removed 'open in browser'
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] picasaweb: removed 'open in browser'
- Date: Thu, 26 Oct 2017 16:53:14 +0000 (UTC)
commit 4f11727c49ab191ce5dfc6ac1909781ae6daf03c
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Oct 26 17:00:02 2017 +0200
picasaweb: removed 'open in browser'
not longer supported by the google API
extensions/picasaweb/dlg-export-to-picasaweb.c | 32 ------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/extensions/picasaweb/dlg-export-to-picasaweb.c b/extensions/picasaweb/dlg-export-to-picasaweb.c
index a342df3..24f454e 100644
--- a/extensions/picasaweb/dlg-export-to-picasaweb.c
+++ b/extensions/picasaweb/dlg-export-to-picasaweb.c
@@ -99,37 +99,6 @@ completed_messagedialog_response_cb (GtkDialog *dialog,
gtk_dialog_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_DELETE_EVENT);
break;
- case _OPEN_IN_BROWSER_RESPONSE:
- {
- OAuthAccount *account;
- GdkScreen *screen;
- char *url = NULL;
- GError *error = NULL;
-
- account = web_service_get_current_account (WEB_SERVICE (data->service));
- screen = gtk_widget_get_screen (GTK_WIDGET (dialog));
- gtk_widget_destroy (GTK_WIDGET (dialog));
-
- if (data->album != NULL) {
- if (data->album->alternate_url != NULL)
- url = g_strdup (data->album->alternate_url);
- else
- url = g_strconcat ("http://picasaweb.google.com/", account->id, "/",
data->album->id, NULL);
- }
- else
- url = g_strconcat ("http://picasaweb.google.com/", account->id, NULL);
-
- if ((url != NULL) && ! gtk_show_uri (screen, url, 0, &error)) {
- gth_task_dialog (GTH_TASK (data->service), TRUE, NULL);
- _gtk_error_dialog_from_gerror_run (GTK_WINDOW (data->browser), _("Could not
connect to the server"), error);
- g_clear_error (&error);
- }
- gtk_dialog_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_DELETE_EVENT);
-
- g_free (url);
- }
- break;
-
default:
break;
}
@@ -149,7 +118,6 @@ export_completed_with_success (DialogData *data)
_("Files successfully uploaded to the server."),
NULL,
_GTK_LABEL_CLOSE, GTK_RESPONSE_CLOSE,
- _("_Open in the Browser"), _OPEN_IN_BROWSER_RESPONSE,
NULL);
g_signal_connect (dialog,
"delete-event",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]