Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gThumb
Commits
4f11727c
Commit
4f11727c
authored
Oct 26, 2017
by
Paolo Bacchilega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
picasaweb: removed 'open in browser'
not longer supported by the google API
parent
0040f52e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
extensions/picasaweb/dlg-export-to-picasaweb.c
extensions/picasaweb/dlg-export-to-picasaweb.c
+0
-32
No files found.
extensions/picasaweb/dlg-export-to-picasaweb.c
View file @
4f11727c
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment