diff options
author | Xan Lopez <xan@src.gnome.org> | 2007-11-16 15:03:10 +0000 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2007-11-16 15:03:10 +0000 |
commit | b7d6a7384621691379618b0be22bef0f58b30414 (patch) | |
tree | 378d3377f3290f3461b23f25349579077ff0bdb3 /src/ephy-encoding-menu.c | |
parent | 1b8bf4b88fb016020c822e5a9208a89ed8ebbdc4 (diff) | |
download | epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.gz |
And port all the callers in src/
svn path=/trunk/; revision=7695
Diffstat (limited to 'src/ephy-encoding-menu.c')
-rw-r--r-- | src/ephy-encoding-menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ephy-encoding-menu.c b/src/ephy-encoding-menu.c index b5e6ea90e..edd1e358d 100644 --- a/src/ephy-encoding-menu.c +++ b/src/ephy-encoding-menu.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright © 2002 Ricardo Fernández Pascual * Copyright © 2003 Marco Pesenti Gritti @@ -26,6 +27,7 @@ #include "ephy-encoding-dialog.h" #include "ephy-encodings.h" #include "ephy-embed.h" +#include "ephy-embed-container.h" #include "ephy-embed-shell.h" #include "ephy-shell.h" #include "ephy-debug.h" @@ -159,7 +161,7 @@ update_encoding_menu_cb (GtkAction *dummy, EphyEncodingMenu *menu) /* get most recently used encodings */ recent = ephy_encodings_get_recent (p->encodings); - embed = ephy_window_get_active_tab (p->window); + embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (p->window)); encoding = ephy_embed_get_encoding (embed); if (encoding == NULL) goto build_menu; @@ -271,7 +273,7 @@ encoding_activate_cb (GtkAction *action, EphyEncodingMenu *menu) name = gtk_action_get_name (GTK_ACTION (action)); encoding = name + strlen("Encoding"); - embed = ephy_window_get_active_tab (menu->priv->window); + embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (menu->priv->window)); ephy_embed_set_encoding (embed, encoding); @@ -340,7 +342,8 @@ ephy_encoding_menu_automatic_cb (GtkAction *action, EphyEncodingMenu *menu) return; } - embed = ephy_window_get_active_tab (menu->priv->window); + embed = ephy_embed_container_get_active_child + (EPHY_EMBED_CONTAINER (menu->priv->window)); /* setting "" will clear the forced encoding */ ephy_embed_set_encoding (embed, ""); |