diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-08-13 16:00:52 +0800 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-10-08 21:27:05 +0800 |
commit | be3e52e1c22a05b655c3b322045d1f5c6fd76c7f (patch) | |
tree | c5b09e964033368d3fada72097c1e8f85f530e0d /tests | |
parent | 7512839e6add584e184805d3781f9976831a2188 (diff) | |
download | gsoc2013-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 'tests')
-rw-r--r-- | tests/ephy-session-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ephy-session-test.c b/tests/ephy-session-test.c index 927cf8444..4a070aa49 100644 --- a/tests/ephy-session-test.c +++ b/tests/ephy-session-test.c @@ -56,7 +56,7 @@ test_ephy_session_load () ret = ephy_session_load_from_string (session, session_data, -1, 0); g_assert (ret); - l = ephy_session_get_windows (session); + l = ephy_shell_get_windows (ephy_shell); g_assert (l); g_assert_cmpint (g_list_length (l), ==, 1); @@ -98,7 +98,7 @@ test_ephy_session_load_empty_session () while (g_main_context_pending (NULL)) g_main_context_iteration (NULL, FALSE); - l = ephy_session_get_windows (session); + l = ephy_shell_get_windows (ephy_shell); g_assert (l); g_assert_cmpint (g_list_length (l), ==, 1); @@ -141,7 +141,7 @@ test_ephy_session_load_many_windows () ret = ephy_session_load_from_string (session, session_data_many_windows, -1, 0); g_assert (ret); - l = ephy_session_get_windows (session); + l = ephy_shell_get_windows (ephy_shell); g_assert (l); g_assert_cmpint (g_list_length (l), ==, 2); |