From d68d147c784bde6f5d13c200eb2d92a40141a5a3 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 9 Nov 2003 19:16:35 +0000 Subject: Cleanup session. Persist also history and bookmarks. 2003-11-09 Marco Pesenti Gritti * embed/ephy-embed.h: * idl/EphyAutomation.idl: * src/ephy-automation.c: (impl_ephy_automation_loadurl), (impl_ephy_automation_open_bookmarks_editor), (ephy_automation_init), (ephy_automation_object_finalize), (ephy_automation_class_init): * src/ephy-completion-model.c: (root_child_removed_cb): * src/ephy-main.c: (ephy_main_start): * src/ephy-shell.c: (ephy_shell_get_active_window), (toolwindow_show_cb), (toolwindow_hide_cb), (ephy_shell_get_bookmarks_editor), (ephy_shell_get_history_window): * src/ephy-shell.h: * src/ephy-tab.c: (ephy_tab_net_state_cb), (ephy_tab_size_to_cb): * src/ephy-window.c: (remove_from_session), (ephy_window_init): * src/session.c: (session_autoresume), (session_close), (session_dispose), (save_window_geometry), (save_tool_window), (save_ephy_window), (session_save), (session_load), (session_get_windows), (net_stop_cb), (tab_added_cb), (tab_removed_cb), (tabs_reordered_cb), (session_add_window), (session_remove_window), (save_yourself_cb), (session_die_cb), (gnome_session_init), (session_init): * src/session.h: * src/window-commands.c: (window_cmd_go_bookmarks), (window_cmd_go_history): Cleanup session. Persist also history and bookmarks. --- src/session.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'src/session.h') diff --git a/src/session.h b/src/session.h index 0926a0f50..6e7711a16 100644 --- a/src/session.h +++ b/src/session.h @@ -19,10 +19,7 @@ #ifndef SESSION_H #define SESSION_H -#include "ephy-window.h" - -#include -#include +#include G_BEGIN_DECLS @@ -51,34 +48,27 @@ struct SessionClass GObjectClass parent_class; void ( *new_window) (Session *session, - EphyWindow *window); + GtkWindow *window); void ( *close_window) (Session *session, - EphyWindow *window); + GtkWindow *window); }; GType session_get_type (void); Session *session_new (void); -void session_close (Session *session); - void session_load (Session *session, const char *filename); -void session_save (Session *session, - const char *filename); - gboolean session_autoresume (Session *session); -const GList *session_get_windows (Session *session); +GList *session_get_windows (Session *session); void session_add_window (Session *session, - EphyWindow *window); + GtkWindow *window); void session_remove_window (Session *session, - EphyWindow *window); - -EphyWindow *session_get_active_window (Session *session); + GtkWindow *window); G_END_DECLS -- cgit v1.2.3