aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-08-13 16:00:52 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-10-08 21:27:05 +0800
commitbe3e52e1c22a05b655c3b322045d1f5c6fd76c7f (patch)
treec5b09e964033368d3fada72097c1e8f85f530e0d /src/ephy-shell.h
parent7512839e6add584e184805d3781f9976831a2188 (diff)
downloadgsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.tar
gsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.tar.gz
gsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.tar.bz2
gsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.tar.lz
gsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.tar.xz
gsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.tar.zst
gsoc2013-epiphany-be3e52e1c22a05b655c3b322045d1f5c6fd76c7f.zip
Move windows handling code from EphySession to EphyShell
EphyShell is now a GtkApplication that already does window handling, however we want to maintain only the of browser windows. Instead of keeping the window lists in ephy-session, it's easier to override window_added and window_removed virtual methods of GtkApplication and update the browser window lists. Most of the cases where this API was used, had to get the session object from the shell first, now we save this step keeping the code simpler. https://bugzilla.gnome.org/show_bug.cgi?id=641734
Diffstat (limited to 'src/ephy-shell.h')
-rw-r--r--src/ephy-shell.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ephy-shell.h b/src/ephy-shell.h
index 42b83e18b..9e0a4c7de 100644
--- a/src/ephy-shell.h
+++ b/src/ephy-shell.h
@@ -177,6 +177,14 @@ GObject *ephy_shell_get_pdm_dialog (EphyShell *shell);
GObject *ephy_shell_get_prefs_dialog (EphyShell *shell);
+GList *ephy_shell_get_windows (EphyShell *shell);
+
+guint ephy_shell_get_n_windows (EphyShell *shell);
+
+EphyWindow *ephy_shell_get_active_window (EphyShell *shell);
+
+gboolean ephy_shell_close_all_windows (EphyShell *shell);
+
G_END_DECLS
#endif