void node_remove (nodePtr node) { /* using itemlist_remove_all_items() ensures correct unread and item counters for all parent folders and matching search folders */ itemlist_remove_all_items (node); NODE_TYPE (node)->remove (node); }
void on_remove_items_activate (GtkMenuItem *menuitem, gpointer user_data) { nodePtr node; node = feedlist_get_selected (); // FIXME: use node type capability check if (node && (IS_FEED (node) || IS_NEWSBIN (node))) itemlist_remove_all_items (node); else ui_show_error_box (_("You must select a feed to delete its items!")); }