From 18d4d38e8d1ca928102b56153b091759dee27860 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 25 Oct 2012 00:06:31 +0200 Subject: Add "Read" filter to main window * src/data.c (data_get_unread_manga): New function. Gets any manga that have unread volumes. (data_get_volumes_for_manga): Default `volumes' to `NULL' to make sure we don't get garbage by mistake. * src/eom-main-window.c: Add new enum. The filter states that the main screen has. (eom_main_window_load): Get a list of unread manga if the window's state indecates we're looking for them. (add_menu): Add read filter button, shows only unread manga. --- src/data.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/data.h') diff --git a/src/data.h b/src/data.h index 9dbf5e6..eb2cd39 100644 --- a/src/data.h +++ b/src/data.h @@ -25,6 +25,7 @@ gboolean data_add_volume_to_manga(gint, gint); GList *data_get_incomplete_manga(void); GList *data_get_manga(void); Manga *data_get_manga_by_id(gint); +GList *data_get_unread_manga(void); void data_get_volumes_for_manga(Manga*); gboolean data_mark_volume_read(gint, gint, gint); gboolean data_remove_volume_from_manga(gint, gint); -- cgit v1.2.3-54-g00ecf