aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-window.c13
2 files changed, 8 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 54e57deb9..394bb0eb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-06-23 Christian Persch <chpe@cvs.gnome.org>
+ * src/ephy-window.c: (ephy_window_get_tabs):
+
+ Simply use gtk_container_get_children().
+
+2004-06-23 Christian Persch <chpe@cvs.gnome.org>
+
* src/ephy-window.c: (exit_fullscreen_button_clicked_cb),
(get_chromes_visibility), (ephy_window_state_event_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