2
* @file ui_feedlist.h GUI feed list handling
4
* Copyright (C) 2004-2009 Lars Lindner <lars.lindner@gmail.com>
5
* Copyright (C) 2004-2005 Nathan J. Conrad <t98502@users.sourceforge.net>
6
* Copyright (C) 2005 Raphael Slinckx <raphael@slinckx.net>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#ifndef _UI_FEEDLIST_H
24
#define _UI_FEEDLIST_H
29
/* constants for attributes in feedstore */
31
FS_LABEL, /* Displayed name */
32
FS_ICON, /* Icon to use */
33
FS_PTR, /* pointer to the folder or feed */
34
FS_UNREAD, /* Number of unread items */
38
extern GtkTreeStore *feedstore;
39
extern gboolean feedlist_reduced_unread;
42
* Selects the given node in the feed list.
44
* @param node the node to select
46
void ui_feedlist_select(nodePtr node);
49
* Initializes the feed list. For example, it creates the various
50
* columns and renderers needed to show the list.
52
void ui_feedlist_init (GtkTreeView *treeview);
55
* Prompt the user for confirmation of a folder or feed, and
56
* recursively remove the feed or folder if the user accepts. This
57
* function does not block, so the folder/feeds will not have
58
* been deleted when this function returns.
60
* @param ptr the node to delete
62
void ui_feedlist_delete_prompt(nodePtr ptr);
64
void on_newbtn_clicked (GtkButton *button, gpointer user_data);
66
void on_menu_delete (GtkWidget *widget, gpointer user_data);
68
void on_menu_update (void);
69
void on_menu_update_all (void);
71
void on_menu_allread (GtkWidget *widget, gpointer user_data);
72
void on_menu_allfeedsread (GtkWidget *widget, gpointer user_data);
74
void on_menu_properties (GtkMenuItem *menuitem, gpointer user_data);
75
void on_menu_feed_new (GtkMenuItem *menuitem, gpointer user_data);
76
void on_menu_folder_new (GtkMenuItem *menuitem, gpointer user_data);
78
void on_new_plugin_activate (GtkMenuItem *menuitem, gpointer user_data);
79
void on_new_newsbin_activate (GtkMenuItem *menuitem, gpointer user_data);
81
void on_feedlist_reduced_activate (GtkToggleAction *menuitem, gpointer user_data);