diff options
| author | Joris Guyonvarch | 2025-12-29 17:35:51 +0100 |
|---|---|---|
| committer | Joris Guyonvarch | 2025-12-29 17:35:51 +0100 |
| commit | 31d87c86ce2a5f2a8f8aa1d404e39a093e975da7 (patch) | |
| tree | 3f5e7f20544c3c05137e58803ac24973346d458c /src/book_form.py | |
| parent | 64be629f81dc30f865d84958fc3f68a6217e6482 (diff) | |
Allow filtering by genre
Diffstat (limited to 'src/book_form.py')
| -rw-r--r-- | src/book_form.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/book_form.py b/src/book_form.py index cff4907..baabe58 100644 --- a/src/book_form.py +++ b/src/book_form.py @@ -13,13 +13,13 @@ import src.str_format as str_format class BookForm(Gtk.Window): - def __init__(self, parent_window, resources, library, conn, init_progress, on_book_saved, book = None): + def __init__(self, parent_window, resources, library, conn, init_progress, msg, book = None): Gtk.Window.__init__(self) self._book = book self._library = library self._conn = conn - self._on_book_saved = on_book_saved + self._msg = msg title = 'Modifier un livre' if book else 'Ajouter un livre' utils.configure_dialog(self, parent_window, title, height=800) @@ -125,7 +125,7 @@ class BookForm(Gtk.Window): book_id = book_store.store(self._library, self._conn, data, cover, books, self._book, self._remove_book_sources.get_active()) if book_id: self.close() - self._on_book_saved(book_id, data) + self._msg(['book-saved', book_id, data]) def non_empty(xs): return [x.strip() for x in xs if x.strip()] |
