aboutsummaryrefslogtreecommitdiffstats
path: root/src/eom-main-window.h
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-21 15:26:34 +0200
committerGravatar Tom Willemsen2012-10-21 15:26:34 +0200
commit8e49f0c56e5e5de4952521719003a9dc77a94063 (patch)
tree0d38d429ea57d1dbdbecc5f4584c61ef9f538192 /src/eom-main-window.h
parent3dadedcd16e96c0e147479e21e6d5e848e2c14b8 (diff)
downloadeye-on-manga-8e49f0c56e5e5de4952521719003a9dc77a94063.tar.gz
eye-on-manga-8e49f0c56e5e5de4952521719003a9dc77a94063.zip
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'.
Diffstat (limited to 'src/eom-main-window.h')
-rw-r--r--src/eom-main-window.h4
1 files changed, 3 insertions, 1 deletions
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,