From 8e49f0c56e5e5de4952521719003a9dc77a94063 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 21 Oct 2012 15:26:34 +0200 Subject: Remember filter after closing edit window * src/eom-main-window.c (eom_main_window_new): Set the `state' variable to 0 the first time around. (eom_main_window_load): Remove the `manga' parameter. Get incomplete collections when `state' is `0'. (eom_main_window_on_filter): Don't fetch any manga, just set the window's `state'. (eom_main_window_on_new): (eom_main_window_on_edit_closed): No more `manga' parameter for `eom_main_window_load'. * src/eom-main-window.h (struct _EomMainWindow): Add `state' property. * src/interface.c (interface_show_main_window): No more `manga' parameter for `eom_main_window_load'. --- src/eom-main-window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/eom-main-window.h') diff --git a/src/eom-main-window.h b/src/eom-main-window.h index 4cecb50..d4ff74e 100644 --- a/src/eom-main-window.h +++ b/src/eom-main-window.h @@ -45,13 +45,15 @@ struct _EomMainWindow GtkTreeIter iter; GtkListStore *store; + + int state; }; GType eom_main_window_get_type(void); GtkWidget *eom_main_window_new(void); -void eom_main_window_load(EomMainWindow *self, GList *manga); +void eom_main_window_load(EomMainWindow *self); void eom_main_window_add_line(EomMainWindow *window, gint id, const gchar *name, -- cgit v1.2.3-54-g00ecf