From 00a6ae4ccf4be271165755d6866211c708cc09f7 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 8 Jan 2008 21:22:06 +0000 Subject: Don't use net-stop signal, it's gone. Switch to notify::load-status svn path=/trunk/; revision=7855 --- src/ephy-encoding-dialog.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ephy-encoding-dialog.c') 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; -- cgit v1.2.3