diff options
author | Tom Willemsen | 2012-10-26 00:25:51 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-10-26 00:25:51 +0200 |
commit | 33b73cac14f28e91cd90e0fb98579bf7690f637f (patch) | |
tree | e71842ee188517ea9718729b2330b869988fe0db /src/data.h | |
parent | 7ffc87d99d0435146358c6ea1dd90ddaae294f51 (diff) | |
download | eye-on-manga-33b73cac14f28e91cd90e0fb98579bf7690f637f.tar.gz eye-on-manga-33b73cac14f28e91cd90e0fb98579bf7690f637f.zip |
Add "Delete" button to detail window
* src/data.c (data_delete_manga): New function, deletes a manga and
its associated volumes.
(data_update_manga): Extra free.
* src/eom-detail-window.c (add_menu): Add a "Delete" button to the
menu.
(on_delete): New function. Shows a confirmation dialog and if the
user pressed "Ok" tries to delete the manga and close the window.
* src/eom-main-window.c (on_row_activated): Connect to the `hide'
signal instead of the `delete-event' signal. I couldn't find how te
emit my own `delete-event' signal, then I found that hide works both
when I close a window and when the window manager does it.
Diffstat (limited to 'src/data.h')
-rw-r--r-- | src/data.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -22,6 +22,7 @@ typedef struct gboolean data_add_manga(const gchar*, gint); gboolean data_add_to_manga(gint, gint); gboolean data_add_volume_to_manga(gint, gint); +gboolean data_delete_manga(gint); GList *data_get_incomplete_manga(void); GList *data_get_manga(void); Manga *data_get_manga_by_id(gint); |