From 476c242753cd43a612cd9eea3166c77d822f7c80 Mon Sep 17 00:00:00 2001
From: Marco Pesenti Gritti <marco@it.gnome.org>
Date: Fri, 20 Jun 2003 12:39:26 +0000
Subject: Ever put cursor at the end of the text when selecting autocompletion

2003-06-20  Marco Pesenti Gritti  <marco@it.gnome.org>

	* lib/widgets/ephy-location-entry.c:
	(ephy_location_entry_autocompletion_window_url_selected_cb):

	Ever put cursor at the end of the text when selecting autocompletion
	items.

	* src/pdm-dialog.c: (cookies_treeview_selection_changed_cb),
	(action_treeview_selection_changed_cb):

	Do not allow to open properties of multiple cookies. (insensitive)
---
 lib/widgets/ephy-location-entry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 9cd984b80..1333bc5dd 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -525,8 +525,9 @@ ephy_location_entry_autocompletion_window_url_selected_cb (EphyAutocompletionWin
 	else
 	{
 		ephy_location_entry_set_location (w, w->priv->before_completion);
-		gtk_editable_set_position (GTK_EDITABLE (w->priv->entry), -1);
 	}
+
+	gtk_editable_set_position (GTK_EDITABLE (w->priv->entry), -1);
 }
 
 void
-- 
cgit v1.2.3