aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-window.c')
-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