From 38b74d1e516fd674940903dbf49a48894c0bbab7 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 23 Jun 2004 19:41:37 +0000 Subject: Simply use gtk_container_get_children(). 2004-06-23 Christian Persch * src/ephy-window.c: (ephy_window_get_tabs): Simply use gtk_container_get_children(). --- ChangeLog | 6 ++++++ src/ephy-window.c | 13 ++----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 54e57deb9..394bb0eb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-23 Christian Persch + + * src/ephy-window.c: (ephy_window_get_tabs): + + Simply use gtk_container_get_children(). + 2004-06-23 Christian Persch * src/ephy-window.c: (exit_fullscreen_button_clicked_cb), 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 -- cgit v1.2.3