[Commits] [SCM] claws branch, master, updated. 3.10.1-167-gdc8728e

ticho at claws-mail.org ticho at claws-mail.org
Sun Oct 12 22:12:06 CEST 2014


The branch, master has been updated
       via  dc8728ee3222dbe49cdac81e6dc72b2ba206a046 (commit)
      from  77efe9e6eb5bc179807f3dd7af528d660ec42c3f (commit)

Summary of changes:
 src/plugins/rssyl/rssyl.c |   17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)


- Log -----------------------------------------------------------------
commit dc8728ee3222dbe49cdac81e6dc72b2ba206a046
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Oct 12 22:09:46 2014 +0200

    RSSyl: Just copy all of the custom folderlist xml tags in copy_private_data via folder_item_{get,set}_xml class functions, instead of handling feed properties one by one.

diff --git a/src/plugins/rssyl/rssyl.c b/src/plugins/rssyl/rssyl.c
index c87fde9..ff4a356 100644
--- a/src/plugins/rssyl/rssyl.c
+++ b/src/plugins/rssyl/rssyl.c
@@ -807,22 +807,13 @@ static gboolean rssyl_subscribe_uri(Folder *folder, const gchar *uri)
 static void rssyl_copy_private_data(Folder *folder, FolderItem *oldi,
 		FolderItem *newi)
 {
-	RFolderItem *olditem = (RFolderItem *)oldi,
-									*newitem = (RFolderItem *)newi;
-
 	g_return_if_fail(folder != NULL);
-	g_return_if_fail(olditem != NULL);
-	g_return_if_fail(newitem != NULL);
+	g_return_if_fail(oldi != NULL);
+	g_return_if_fail(newi != NULL);
 
-	if( olditem->url != NULL ) {
-		g_free(newitem->url);
-		newitem->url = g_strdup(olditem->url);
-	}
+	rssyl_item_set_xml(newi->folder, newi,
+			rssyl_item_get_xml(folder, oldi));
 
-	if( olditem->official_title != NULL ) {
-		g_free(newitem->official_title);
-		newitem->official_title = g_strdup(olditem->official_title);
-	}
 }
 
 /************************************************************************/

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list