aboutsummaryrefslogtreecommitdiffstats
path: root/src/eom-main-window.h
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-20 01:06:39 +0200
committerGravatar Tom Willemsen2012-10-20 01:06:39 +0200
commit395c534fd9aef1f83a72d21f705f6718b8594f5e (patch)
tree81b3c25732edfc22aaa3eef91ac6ea4b7ccfc5c4 /src/eom-main-window.h
parent12c5dd9231d4a06a91f7356a0b582d5b6178bfae (diff)
downloadeye-on-manga-395c534fd9aef1f83a72d21f705f6718b8594f5e.tar.gz
eye-on-manga-395c534fd9aef1f83a72d21f705f6718b8594f5e.zip
Add Collect filter
This filter, in the main window, shows only the manga that still need to be collected, not the completed ones. * src/data.c (data_get_manga): Use `data_get_manga_for_query'. (data_get_incomplete_manga): New function, get all manga that arent' completely collected yet. (data_get_manga_for_query): New function, fetches all the manga as `query' specifies. * src/data.h: Add `data_get_incomplete_manga'. * src/eom-main-window.c (filter_args): New struct. Contains arguments needed by the filter callback. (eom_main_window_load): Accept a list of manga, this list will be used to show the manga, if it's NULL, a list of all manga is used. (eom_main_window_add_menu): Add `All' and `Collect' filter buttons. (eom_main_window_on_filter): Callback for the filter buttons, reloads the list with the correct manga. * src/eom-main-window.h: Add manga parameter to `eom_main_window_load'. * src/interface.c (interface_show_main_window): Pass `NULL' to `eom_main_window_load' to show all manga.
Diffstat (limited to 'src/eom-main-window.h')
-rw-r--r--src/eom-main-window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eom-main-window.h b/src/eom-main-window.h
index 93dd050..4cecb50 100644
--- a/src/eom-main-window.h
+++ b/src/eom-main-window.h
@@ -51,7 +51,7 @@ GType eom_main_window_get_type(void);
GtkWidget *eom_main_window_new(void);
-void eom_main_window_load(EomMainWindow *self);
+void eom_main_window_load(EomMainWindow *self, GList *manga);
void eom_main_window_add_line(EomMainWindow *window,
gint id,
const gchar *name,