aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tabs-menu.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-11-16 23:03:10 +0800
committerXan Lopez <xan@src.gnome.org>2007-11-16 23:03:10 +0800
commitb7d6a7384621691379618b0be22bef0f58b30414 (patch)
tree378d3377f3290f3461b23f25349579077ff0bdb3 /src/ephy-tabs-menu.c
parent1b8bf4b88fb016020c822e5a9208a89ed8ebbdc4 (diff)
downloadgsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.gz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.bz2
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.lz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.xz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.zst
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.zip
And port all the callers in src/
svn path=/trunk/; revision=7695
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r--src/ephy-tabs-menu.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index 0eaf2c1eb..47ce241bc 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright © 2003 David Bordoley
* Copyright © 2003-2004 Christian Persch
@@ -26,6 +27,7 @@
#include "ephy-marshal.h"
#include "ephy-shell.h"
#include "ephy-debug.h"
+#include "ephy-embed-container.h"
#include "ephy-embed-utils.h"
#include <glib/gi18n.h>
@@ -169,9 +171,9 @@ tab_action_activate_cb (GtkToggleAction *action,
LOG ("tab_action_activate_cb embed=%p", embed);
- if (ephy_window_get_active_tab (priv->window) != embed)
+ if (ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (priv->window)) != embed)
{
- ephy_window_jump_to_tab (priv->window, embed);
+ ephy_embed_container_jump_to_child (EPHY_EMBED_CONTAINER (priv->window), embed);
}
}
@@ -218,7 +220,7 @@ notebook_page_added_cb (EphyNotebook *notebook,
gtk_radio_action_set_group (GTK_RADIO_ACTION (action), group);
/* set this here too, since tab-added comes after notify::active-tab */
- if (ephy_window_get_active_tab (priv->window) == embed)
+ if (ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (priv->window)) == embed)
{
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), TRUE);
}
@@ -299,7 +301,7 @@ sync_active_tab (EphyWindow *window,
EphyEmbed *embed;
GtkAction *action;
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
if (embed == NULL) return;
LOG ("active tab is embed %p", embed);
@@ -478,7 +480,7 @@ ephy_tabs_menu_update (EphyTabsMenu *menu)
ephy_tabs_menu_clean (menu);
- tabs = ephy_window_get_tabs (p->window);
+ tabs = ephy_embed_container_get_children (EPHY_EMBED_CONTAINER (p->window));
if (g_list_length (tabs) == 0) return;