aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-session.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-24 20:26:23 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-24 20:26:23 +0800
commit952a36768edd6b95d65174c7d797e114cda54372 (patch)
tree463779494a6ad8f67c89e22449aeeac9af88a68f /src/ephy-session.c
parent433e0afbdb0dc0ee9e109c1a76a64793b1fcf2be (diff)
downloadgsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.tar
gsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.tar.gz
gsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.tar.bz2
gsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.tar.lz
gsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.tar.xz
gsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.tar.zst
gsoc2013-epiphany-952a36768edd6b95d65174c7d797e114cda54372.zip
Set title of loading page to the address, iff the page was blank before.
2005-07-24 Christian Persch <chpe@cvs.gnome.org> * src/ephy-lockdown.c: (update_location_editable): * src/ephy-shell.c: (ephy_shell_new_tab_full): * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), (ephy_tab_class_init), (get_title_from_address), (ephy_tab_set_loading_title), (ephy_tab_set_address), (ephy_tab_set_load_status), (ephy_tab_get_load_status), (ephy_tab_open_uri_cb), (ephy_tab_address_cb), (ephy_tab_content_change_cb), (ephy_tab_zoom_changed_cb), (ephy_tab_title_cb), (ensure_page_info), (ephy_tab_net_state_cb), (ephy_tab_init), (ephy_tab_set_title), (ephy_tab_get_title), (ephy_tab_get_address), (ephy_tab_get_typed_address), (ephy_tab_set_typed_address): * src/ephy-tab.h: * src/ephy-toolbar.c: (sync_user_input_cb): * src/ephy-window.c: (sync_tab_typed_address), (sync_tab_title), (ephy_window_set_active_tab): * src/epiphany.defs: Set title of loading page to the address, iff the page was blank before. Fixes bug #115337 and bug #171622. * src/ephy-session.c: (ephy_session_close): In ephy_session_close(), close open dialogues first.
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r--src/ephy-session.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index f39001116..50b9a1685 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -485,6 +485,15 @@ ephy_session_close (EphySession *session)
ephy_embed_shell_prepare_close (embed_shell);
+ /* there may still be windows open, like dialogues posed from
+ * web pages, etc. Try to kill them, but be sure NOT to destroy
+ * the gtkmozembed offscreen window!
+ * Here, we just check if it's a dialogue and close it if it is one.
+ */
+ windows = gtk_window_list_toplevels ();
+ g_list_foreach (windows, (GFunc) close_dialog, NULL);
+ g_list_free (windows);
+
windows = ephy_session_get_windows (session);
g_list_foreach (windows, (GFunc) gtk_widget_destroy, NULL);
g_list_free (windows);
@@ -495,11 +504,7 @@ ephy_session_close (EphySession *session)
ephy_embed_shell_prepare_close (embed_shell);
- /* there may still be windows open, like dialogues posed from
- * web pages, etc. Try to kill them, but be sure NOT to destroy
- * the gtkmozembed offscreen window!
- * Here, we just check if it's a dialogue and close it if it is one.
- */
+ /* Just to be really sure, do it again: */
windows = gtk_window_list_toplevels ();
g_list_foreach (windows, (GFunc) close_dialog, NULL);
g_list_free (windows);