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

« back to all changes in this revision

Viewing changes to src/itemlist.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
1
/**
2
2
 * @file itemlist.h  itemlist handling
3
3
 *
4
 
 * Copyright (C) 2004-2009 Lars Lindner <lars.lindner@gmail.com>
 
4
 * Copyright (C) 2004-2011 Lars Lindner <lars.lindner@gmail.com>
5
5
 *            
6
6
 * This program is free software; you can redistribute it and/or modify
7
7
 * it under the terms of the GNU General Public License as published by
22
22
#define _ITEMLIST_H
23
23
 
24
24
#include <gtk/gtk.h>
 
25
 
25
26
#include "item.h"
 
27
#include "item_loader.h"
26
28
#include "itemset.h"
27
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define ITEMLIST_TYPE           (itemlist_get_type ())
 
33
#define ITEMLIST(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), ITEMLIST_TYPE, ItemList))
 
34
#define ITEMLIST_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), ITEMLIST_TYPE, ItemListClass))
 
35
#define IS_ITEMLIST(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ITEMLIST_TYPE))
 
36
#define IS_ITEMLIST_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), ITEMLIST_TYPE))
 
37
 
 
38
typedef struct ItemList         ItemList;
 
39
typedef struct ItemListClass    ItemListClass;
 
40
typedef struct ItemListPrivate  ItemListPrivate;
 
41
 
 
42
struct ItemList
 
43
{
 
44
        GObject         parent;
 
45
        
 
46
        /*< private >*/
 
47
        ItemListPrivate *priv;
 
48
};
 
49
 
 
50
struct ItemListClass 
 
51
{
 
52
        GObjectClass parent_class;      
 
53
};
 
54
 
 
55
GType itemlist_get_type (void);
 
56
 
28
57
/**
29
 
 * Frees everything used by the item list.
 
58
 * Set up the feed list.
 
59
 *
 
60
 * @returns the feed list instance
30
61
 */
31
 
void itemlist_free (void);
 
62
ItemList * itemlist_create (void);
32
63
 
33
64
/**
34
65
 * Returns the currently displayed node.
61
92
 */
62
93
void itemlist_merge_itemset(itemSetPtr itemSet);
63
94
 
64
 
/**
65
 
 * Loads a search result into the item list.
66
 
 *
67
 
 * @param itemset       the search result's itemset
68
 
 */
69
 
void itemlist_load_search_result (itemSetPtr itemSet);
70
 
 
71
95
/** 
72
96
 * Loads the passed nodes items into the item list.
73
97
 *
170
194
 */
171
195
void itemlist_toggle_read_status(itemPtr item);
172
196
 
 
197
/**
 
198
 * Adding a loader for item batch loading (e.g. search folder)
 
199
 *
 
200
 * @param loader        the loader to add to default item list view
 
201
 */
 
202
void itemlist_add_loader (ItemLoader *loader); 
 
203
 
 
204
/**
 
205
 * Register a search result item loader.
 
206
 *
 
207
 * @param loader        the search result item loader
 
208
 */
 
209
void itemlist_add_search_result (ItemLoader *loader);
 
210
 
 
211
G_END_DECLS
 
212
 
173
213
#endif