aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-12-16 22:24:27 +0800
committerChristian Persch <chpe@src.gnome.org>2004-12-16 22:24:27 +0800
commit2b06b8d92fd6c6ec334264a5c5cf8f8480e58498 (patch)
tree4eeaf6ca31c8fb84035e1918b3f29bf4eea87d48 /lib
parent1c9c069ecfed2c100d07984c287a18b71338fa14 (diff)
downloadgsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.tar
gsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.tar.gz
gsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.tar.bz2
gsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.tar.lz
gsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.tar.xz
gsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.tar.zst
gsoc2013-epiphany-2b06b8d92fd6c6ec334264a5c5cf8f8480e58498.zip
Small improvement.
2004-12-16 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-location-entry.c: (entry_populate_popup_cb): Small improvement.
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c3
1 files changed, 1 insertions, 2 deletions
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);
}