~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/ui/ui_feedlist.h

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * @file ui_feedlist.h  GUI feed list handling
3
 
 * 
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>
7
 
 *
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.
12
 
 *
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.
17
 
 *
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 
21
 
 */
22
 
 
23
 
#ifndef _UI_FEEDLIST_H
24
 
#define _UI_FEEDLIST_H
25
 
 
26
 
#include <gtk/gtk.h>
27
 
#include "feed.h"
28
 
 
29
 
/* constants for attributes in feedstore */
30
 
enum {
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 */
35
 
        FS_LEN
36
 
};
37
 
 
38
 
extern GtkTreeStore     *feedstore;
39
 
extern gboolean         feedlist_reduced_unread;
40
 
 
41
 
/**
42
 
 * Selects the given node in the feed list.
43
 
 *
44
 
 * @param node  the node to select
45
 
 */
46
 
void ui_feedlist_select(nodePtr node);
47
 
 
48
 
/**
49
 
 * Initializes the feed list. For example, it creates the various
50
 
 * columns and renderers needed to show the list.
51
 
 */
52
 
void ui_feedlist_init (GtkTreeView *treeview);
53
 
 
54
 
/**
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.
59
 
 *
60
 
 * @param ptr the node to delete
61
 
 */
62
 
void ui_feedlist_delete_prompt(nodePtr ptr);
63
 
 
64
 
void on_newbtn_clicked (GtkButton *button, gpointer user_data);
65
 
 
66
 
void on_menu_delete (GtkWidget *widget, gpointer user_data);
67
 
 
68
 
void on_menu_update (void);
69
 
void on_menu_update_all (void);
70
 
 
71
 
void on_menu_allread (GtkWidget *widget, gpointer user_data);
72
 
void on_menu_allfeedsread (GtkWidget *widget, gpointer user_data);
73
 
 
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);
77
 
 
78
 
void on_new_plugin_activate (GtkMenuItem *menuitem, gpointer user_data);
79
 
void on_new_newsbin_activate (GtkMenuItem *menuitem, gpointer user_data);
80
 
 
81
 
void on_feedlist_reduced_activate (GtkToggleAction *menuitem, gpointer user_data);
82
 
#endif