diff options
author | Tom Willemsen | 2012-10-20 01:06:39 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-10-20 01:06:39 +0200 |
commit | 395c534fd9aef1f83a72d21f705f6718b8594f5e (patch) | |
tree | 81b3c25732edfc22aaa3eef91ac6ea4b7ccfc5c4 /src/Makefile.orig | |
parent | 12c5dd9231d4a06a91f7356a0b582d5b6178bfae (diff) | |
download | eye-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/Makefile.orig')
0 files changed, 0 insertions, 0 deletions