epiphany-extensions r1667 - trunk/extensions/select-stylesheet



Author: diegoe
Date: Wed Jan 30 18:29:12 2008
New Revision: 1667
URL: http://svn.gnome.org/viewvc/epiphany-extensions?rev=1667&view=rev

Log:
Update select-stylesheet to work with ephy trunk. Fixes #513209.



Modified:
   trunk/extensions/select-stylesheet/ephy-css-menu.c

Modified: trunk/extensions/select-stylesheet/ephy-css-menu.c
==============================================================================
--- trunk/extensions/select-stylesheet/ephy-css-menu.c	(original)
+++ trunk/extensions/select-stylesheet/ephy-css-menu.c	Wed Jan 30 18:29:12 2008
@@ -193,6 +193,19 @@
 }
 
 static void
+load_status_cb (EphyEmbed *embed,
+		GParamSpec *pspec,
+		EphyCSSMenu *menu)
+{
+	gboolean loading;
+	
+	loading = ephy_embed_get_load_status (embed);
+
+	if (!loading)
+		ephy_css_menu_rebuild (menu);
+}
+
+static void
 ephy_css_menu_rebuild (EphyCSSMenu *menu)
 {
 	EphyCSSMenuPrivate *p = menu->priv;
@@ -285,9 +298,9 @@
 	if (p->embed != NULL)
 	{
 		g_object_ref (p->embed);
-		g_signal_connect_object (p->embed, "net_stop",
-					 G_CALLBACK (ephy_css_menu_rebuild),
-					 menu, G_CONNECT_SWAPPED);
+		g_signal_connect (p->embed, "notify::load-status",
+					 G_CALLBACK (load_status_cb),
+					 menu);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]