aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-10 03:52:21 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-10 03:52:21 +0800
commit4e3ff98a7670d0530adb3bca0d00a5d141edb856 (patch)
tree5f48b1e92fc80c312cd1ba34ac6921d48dca06c1 /src
parent1d54b362a87e2baa341281429971b632a5750e84 (diff)
downloadgsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.gz
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.bz2
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.lz
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.xz
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.zst
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.zip
Do not connect and reemit same signal for nothing. Remove unused/expensive
2003-11-09 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: * src/ephy-tab.c: (ephy_tab_init): Do not connect and reemit same signal for nothing. Remove unused/expensive progress signal. * src/session.c: (session_save): Unlink session file when all windows are removed.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c8
-rw-r--r--src/session.c6
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 3f016a7a5..35a6a09cc 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -1104,7 +1104,7 @@ ephy_tab_init (EphyTab *tab)
g_signal_connect (embed, "ge_location",
G_CALLBACK (ephy_tab_address_cb),
tab);
- g_signal_connect (embed, "ge_title",
+ g_signal_connect (embed, "title",
G_CALLBACK (ephy_tab_title_cb),
tab);
g_signal_connect (embed, "ge_zoom_change",
@@ -1116,16 +1116,16 @@ ephy_tab_init (EphyTab *tab)
g_signal_connect (embed, "ge_new_window",
G_CALLBACK (ephy_tab_new_window_cb),
tab);
- g_signal_connect (embed, "ge_visibility",
+ g_signal_connect (embed, "visibility",
G_CALLBACK (ephy_tab_visibility_cb),
tab);
- g_signal_connect (embed, "ge_destroy_brsr",
+ g_signal_connect (embed, "destroy_browser",
G_CALLBACK (ephy_tab_destroy_brsr_cb),
tab);
g_signal_connect (embed, "ge_open_uri",
G_CALLBACK (ephy_tab_open_uri_cb),
tab);
- g_signal_connect (embed, "ge_size_to",
+ g_signal_connect (embed, "size_to",
G_CALLBACK (ephy_tab_size_to_cb),
tab);
g_signal_connect (embed, "ge_dom_mouse_click",
diff --git a/src/session.c b/src/session.c
index 958e804b8..9df93ca14 100644
--- a/src/session.c
+++ b/src/session.c
@@ -444,6 +444,12 @@ session_save (Session *session,
xmlDocPtr doc;
char *save_to;
+ if (session->priv->windows == NULL)
+ {
+ session_delete (session, filename);
+ return;
+ }
+
save_to = get_session_filename (filename);
doc = xmlNewDoc ("1.0");