aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-06-24 03:41:37 +0800
committerChristian Persch <chpe@src.gnome.org>2004-06-24 03:41:37 +0800
commit38b74d1e516fd674940903dbf49a48894c0bbab7 (patch)
treeca2d5162305c7f5261685dd7afb589586764baed /src
parentf9d16e71518fd593d966c503baad72c049daa4ab (diff)
downloadgsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.tar
gsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.tar.gz
gsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.tar.bz2
gsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.tar.lz
gsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.tar.xz
gsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.tar.zst
gsoc2013-epiphany-38b74d1e516fd674940903dbf49a48894c0bbab7.zip
Simply use gtk_container_get_children().
2004-06-23 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (ephy_window_get_tabs): Simply use gtk_container_get_children().
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 9ff9c06cd..9913a2170 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2456,18 +2456,9 @@ ephy_window_get_active_embed (EphyWindow *window)
GList *
ephy_window_get_tabs (EphyWindow *window)
{
- GtkNotebook *notebook;
- GList *list = NULL;
- int i, num;
-
- notebook = GTK_NOTEBOOK (window->priv->notebook);
- num = gtk_notebook_get_n_pages (notebook);
- for (i = 0; i < num; i++)
- {
- list = g_list_prepend (list, gtk_notebook_get_nth_page (notebook, i));
- }
+ g_return_val_if_fail (EPHY_IS_WINDOW (window), NULL);
- return g_list_reverse (list);
+ return gtk_container_get_children (GTK_CONTAINER (window->priv->notebook));
}
static void