Index: lib/widgets/ephy-location-entry.c
===================================================================
RCS file: /cvs/gnome/epiphany/lib/widgets/ephy-location-entry.c,v
retrieving revision 1.76
diff -p -u -u -p -r1.76 ephy-location-entry.c
--- lib/widgets/ephy-location-entry.c	10 Jul 2006 19:23:43 -0000	1.76
+++ lib/widgets/ephy-location-entry.c	12 Jul 2006 19:32:57 -0000
@@ -110,6 +110,7 @@ static const GdkColor fallback_bg_colour
 
 static void ephy_location_entry_class_init (EphyLocationEntryClass *klass);
 static void ephy_location_entry_init (EphyLocationEntry *le);
+static gboolean ephy_location_entry_reset_internal (EphyLocationEntry *, gboolean);
 
 static GObjectClass *parent_class = NULL;
 
@@ -385,7 +386,7 @@ entry_key_press_cb (GtkEntry *entry,
 
 	if (event->keyval == GDK_Escape && state == 0)
 	{
-		ephy_location_entry_reset (lentry);
+		ephy_location_entry_reset_internal (lentry, TRUE);
 		/* don't return TRUE since we want to cancel the autocompletion popup too */
 	}
 
@@ -426,7 +427,7 @@ entry_activate_after_cb (GtkEntry *entry
 
 	if (priv->needs_reset)
 	{
-		ephy_location_entry_reset (lentry);
+		ephy_location_entry_reset_internal (lentry, TRUE);
 		priv->needs_reset = FALSE;
 	}
 }
@@ -552,7 +553,7 @@ action_activated_after_cb (GtkEntryCompl
 	     state == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) ||
 	    button == 2)
 	{
-		ephy_location_entry_reset (lentry);
+		ephy_location_entry_reset_internal (lentry, TRUE);
 	}
 }
 
@@ -1082,8 +1083,9 @@ ephy_location_entry_get_location (EphyLo
 	return gtk_entry_get_text (GTK_ENTRY (priv->icon_entry->entry));
 }
 
-gboolean
-ephy_location_entry_reset (EphyLocationEntry *entry)
+static gboolean
+ephy_location_entry_reset_internal (EphyLocationEntry *entry,
+				    gboolean notify)
 {
 	EphyLocationEntryPrivate *priv = entry->priv;
 	const char *text, *old_text;
@@ -1100,7 +1102,18 @@ ephy_location_entry_reset (EphyLocationE
 	ephy_location_entry_set_location (entry, text, NULL);
 	g_free (url);
 
+	if (notify)
+	{
+		g_signal_emit (entry, signals[USER_CHANGED], 0);
+	}
+
 	return retval;
+}
+
+gboolean
+ephy_location_entry_reset (EphyLocationEntry *entry)
+{
+	return ephy_location_entry_reset_internal (entry, FALSE);
 }
 
 void
