aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-02 06:57:16 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-02 06:57:16 +0800
commit05b3184b5d074180c6a730e55b57ced1d5d480db (patch)
tree655829b92f263adbdf8aa4a917a6734e70508cdf /src/ephy-tab.c
parentab98ba5308fd8065876b480b799dc591893383e8 (diff)
downloadgsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.tar
gsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.tar.gz
gsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.tar.bz2
gsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.tar.lz
gsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.tar.xz
gsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.tar.zst
gsoc2013-epiphany-05b3184b5d074180c6a730e55b57ced1d5d480db.zip
New API to get the EphyTab from an EphyEmbed. Port all users.
2004-01-01 Christian Persch <chpe@cvs.gnome.org> * src/ephy-notebook.c: (notebook_drag_data_received_cb), (ephy_notebook_insert_page), (ephy_notebook_remove_page): * src/ephy-tab.c: (ephy_tab_for_embed), (ephy_tab_init): * src/ephy-tab.h: * src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb): * src/ephy-window.c: (tab_context_menu_cb), (tab_added_cb), (tab_removed_cb), (real_get_active_tab), (ephy_window_get_tabs): New API to get the EphyTab from an EphyEmbed. Port all users.
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 25c7f0e4e..0ca50ef4a 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -476,6 +476,18 @@ ephy_tab_get_embed (EphyTab *tab)
return tab->priv->embed;
}
+EphyTab *
+ephy_tab_for_embed (EphyEmbed *embed)
+{
+ EphyTab *tab;
+
+ g_return_val_if_fail (EPHY_IS_EMBED (embed), NULL);
+
+ tab = EPHY_TAB (g_object_get_data (G_OBJECT (embed), "ephy-tab"));
+
+ return tab;
+}
+
void
ephy_tab_set_window (EphyTab *tab, EphyWindow *window)
{
@@ -1130,7 +1142,7 @@ ephy_tab_init (EphyTab *tab)
G_CALLBACK (ephy_tab_action_activate_cb), tab);
/* set a pointer in the embed's widget back to the tab */
- g_object_set_data (embed_widget, "EphyTab", tab);
+ g_object_set_data (embed_widget, "ephy-tab", tab);
g_signal_connect (embed_widget, "parent_set",
G_CALLBACK (ephy_tab_parent_set_cb),