diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-12-16 22:24:27 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-12-16 22:24:27 +0800 |
commit | 2b06b8d92fd6c6ec334264a5c5cf8f8480e58498 (patch) | |
tree | 4eeaf6ca31c8fb84035e1918b3f29bf4eea87d48 /lib/widgets/ephy-location-entry.c | |
parent | 1c9c069ecfed2c100d07984c287a18b71338fa14 (diff) | |
download | gsoc2013-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/widgets/ephy-location-entry.c')
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 3 |
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); } |