summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-01-08 21:22:06 +0000
committerXan Lopez <xan@src.gnome.org>2008-01-08 21:22:06 +0000
commit00a6ae4ccf4be271165755d6866211c708cc09f7 (patch)
tree7caaab4c17f41603a3b3a6f1827fa91e6ab03b04
parentd5b9f2e35a4b297e30ce01ed0a8567b0f979375e (diff)
downloadepiphany-00a6ae4ccf4be271165755d6866211c708cc09f7.tar.gz
Don't use net-stop signal, it's gone. Switch to notify::load-status
svn path=/trunk/; revision=7855
-rw-r--r--src/ephy-encoding-dialog.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c
index d58a43fc7..157bad6f0 100644
--- a/src/ephy-encoding-dialog.c
+++ b/src/ephy-encoding-dialog.c
@@ -164,9 +164,12 @@ sync_encoding_against_embed (EphyEncodingDialog *dialog)
static void
-embed_net_stop_cb (EphyEmbed *embed, EphyEncodingDialog *dialog)
+embed_net_stop_cb (EphyEmbed *embed,
+ GParamSpec *pspec,
+ EphyEncodingDialog *dialog)
{
- sync_encoding_against_embed (dialog);
+ if (ephy_embed_get_load_status (embed) == FALSE)
+ sync_encoding_against_embed (dialog);
}
static void
@@ -182,7 +185,7 @@ sync_embed_cb (EphyEncodingDialog *dialog, GParamSpec *pspec, gpointer dummy)
dialog);
}
- g_signal_connect (G_OBJECT (embed), "net_stop",
+ g_signal_connect (G_OBJECT (embed), "notify::load-status",
G_CALLBACK (embed_net_stop_cb), dialog);
dialog->priv->embed = embed;