From 2b06b8d92fd6c6ec334264a5c5cf8f8480e58498 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 16 Dec 2004 14:24:27 +0000 Subject: Small improvement. 2004-12-16 Christian Persch * lib/widgets/ephy-location-entry.c: (entry_populate_popup_cb): Small improvement. --- lib/widgets/ephy-location-entry.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/widgets/ephy-location-entry.c') diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index b95522a3b..0dbb7192e 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -372,12 +372,11 @@ entry_populate_popup_cb (GtkEntry *entry, * menu, and insert this menu item before it. * It's a bit of a hack, but there seems to be no better way to do it :/ */ - children = gtk_container_get_children (GTK_CONTAINER (menu)); + children = GTK_MENU_SHELL (menu)->children; for (item = children; item != NULL && sep < 2; item = item->next, pos++) { if (GTK_IS_SEPARATOR_MENU_ITEM (item->data)) sep++; } - g_list_free (children); gtk_menu_shell_insert (GTK_MENU_SHELL (menu), menuitem, pos - 1); } -- cgit v1.2.3