~ubuntu-branches/ubuntu/maverick/liferea/maverick

« back to all changes in this revision

Viewing changes to src/comments.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-06-23 12:44:17 UTC
  • mfrom: (1.2.52 upstream)
  • Revision ID: james.westby@ubuntu.com-20080623124417-o4klc8dom3qwd7wn
Tags: 1.4.16b-0.1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - Change Build-Depends from xulrunner-dev to xulrunner-1.9-dev.
  - Add intltool to Build-Depends.
  - Fix systray mis-behaviour when Liferea is visible in another workspace.
  - Add Hildonisation from Frothing as a patch.
  - Add libhildon-1-dev Build-Depends for lpia.
  - --enable-maemo when building on lpia.
  - Call intltool-update -p to generate translation template for Rosetta.
  - Do not build transitional packages (not required due to Conflicts/
    Provides/Replaces).
  - Build-depend on liblualib50-dev instead of liblua5.1-0-dev.
  - Do not build webkit package.
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - mobile.desktop, it isn't needed any more.
  - Added xulrunner-1.9 to liferea dependencies.
  - Quilt changes.
* Edit xulrunner-1.9 patch to not patch configure, handle that in
  99_autoconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
                        while (iter) {
146
146
                                itemPtr comment = (itemPtr) iter->data;
147
147
                                comment->isComment = TRUE;
148
 
                                comment->parentItemId = commentFeed->itemId;                            
 
148
                                comment->parentItemId = commentFeed->itemId;
 
149
                                comment->parentNodeId = g_strdup (item->nodeId);
149
150
                                iter = g_list_next (iter);
150
151
                        }
151
152
                        
152
 
                        debug1 (DEBUG_UPDATE, "parsing comment feed successful (%d comments downloaded)", g_list_length(ctxt->items));          
 
153
                        debug1 (DEBUG_UPDATE, "parsing comment feed successful (%d comments downloaded)", g_list_length(ctxt->items));
153
154
                        comments = db_itemset_load (commentFeed->id);
154
155
                        itemset_merge_items (comments, ctxt->items, ctxt->feed->valid);
155
156
                        itemset_free (comments);
268
269
                        
269
270
        itemset_free (itemSet);
270
271
}
271
 
 
272
 
void
273
 
comments_remove (const gchar *id)
274
 
{
275
 
        commentFeedPtr commentFeed;
276
 
 
277
 
        db_itemset_remove_all (id);
278
 
        
279
 
        commentFeed = comment_feed_from_id (id);
280
 
        g_return_if_fail (commentFeed != NULL);
281
 
        comment_feed_free (commentFeed);
282
 
}