aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-notebook.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-notebook.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-notebook.c')
-rw-r--r--src/ephy-notebook.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 1308e71fc..87bb719a6 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -654,7 +654,7 @@ notebook_drag_data_received_cb (GtkWidget* widget, GdkDragContext *context,
if (child)
{
embed = EPHY_EMBED (child);
- tab = EPHY_TAB (g_object_get_data (G_OBJECT (embed), "EphyTab"));
+ tab = ephy_tab_for_embed (embed);
}
l = uris;
@@ -958,7 +958,7 @@ ephy_notebook_insert_page (EphyNotebook *nb,
GtkWidget *label;
g_return_if_fail (EPHY_IS_EMBED (child));
- tab = EPHY_TAB (g_object_get_data (G_OBJECT (child), "EphyTab"));
+ tab = ephy_tab_for_embed (EPHY_EMBED (child));
g_return_if_fail (EPHY_IS_TAB (tab));
label = build_tab_label (nb, child);
@@ -1051,7 +1051,7 @@ smart_tab_switching_on_closure (EphyNotebook *nb,
void
ephy_notebook_remove_page (EphyNotebook *nb,
- GtkWidget *child)
+ GtkWidget *child)
{
int num, position, curr;
EphyTab *tab;
@@ -1060,7 +1060,7 @@ ephy_notebook_remove_page (EphyNotebook *nb,
g_return_if_fail (EPHY_IS_NOTEBOOK (nb));
g_return_if_fail (EPHY_IS_EMBED (child));
- tab = EPHY_TAB (g_object_get_data (G_OBJECT (child), "EphyTab"));
+ tab = ephy_tab_for_embed (EPHY_EMBED (child));
g_return_if_fail (EPHY_IS_TAB (tab));
num = gtk_notebook_get_n_pages (GTK_NOTEBOOK (nb));