[epiphany/wip/ephy-sync: 115/126] sync-bookmarks: Save changes to file when successfully uploading a bookmark
- From: Gabriel - Cristian Ivascu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/ephy-sync: 115/126] sync-bookmarks: Save changes to file when successfully uploading a bookmark
- Date: Fri, 19 Aug 2016 17:41:13 +0000 (UTC)
commit c505d6991170ff37037933f636365303052f7ccf
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Tue Aug 9 15:45:02 2016 +0300
sync-bookmarks: Save changes to file when successfully uploading a bookmark
src/ephy-sync-bookmarks.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-sync-bookmarks.c b/src/ephy-sync-bookmarks.c
index 4d58323..80f9680 100644
--- a/src/ephy-sync-bookmarks.c
+++ b/src/ephy-sync-bookmarks.c
@@ -133,6 +133,7 @@ upload_bookmark_to_server_response_cb (SoupSession *session,
gpointer user_data)
{
EphySyncService *service;
+ EphyBookmarksManager *manager;
EphyBookmark *bookmark;
double last_modified;
@@ -141,6 +142,8 @@ upload_bookmark_to_server_response_cb (SoupSession *session,
if (message->status_code == 200) {
last_modified = g_ascii_strtod (message->response_body->data, NULL);
ephy_bookmark_set_modified (bookmark, last_modified);
+ manager = ephy_shell_get_bookmarks_manager (ephy_shell_get_default ());
+ ephy_bookmarks_manager_save_to_file_async (manager, NULL, NULL, NULL);
} else if (message->status_code == 412) {
/* FIXME: A more recent value is on the server. See how to handle this. */
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]