aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-24 05:17:12 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-24 05:17:12 +0800
commit2c299d6190d08c97d1cf76b3545b30bde89d904f (patch)
tree3be94b9b4ed84ee4bd825ae1ece12faa5b31fbe4 /src/ephy-window.c
parent9128390b9cef9877497962a409cd17393ddd0588 (diff)
downloadgsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.tar
gsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.tar.gz
gsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.tar.bz2
gsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.tar.lz
gsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.tar.xz
gsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.tar.zst
gsoc2013-epiphany-2c299d6190d08c97d1cf76b3545b30bde89d904f.zip
Get rid of ephy_tab_[get|set]_window().
2004-03-23 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tab.c: (ephy_tab_set_property), (ephy_tab_get_property), (ephy_tab_get_window), (ephy_tab_action_activate_cb), (ephy_tab_class_init), (ephy_tab_destroy_brsr_cb), (ephy_tab_size_to_cb), (ephy_tab_dom_mouse_click_cb), (ephy_tab_init): * src/ephy-tab.h: * src/ephy-window.c: (tab_context_menu_cb), (ephy_window_set_active_tab): * src/ephy-window.h: Get rid of ephy_tab_[get|set]_window().
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 7408c3cb7..9f5c3001b 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1466,9 +1466,6 @@ tab_context_menu_cb (EphyEmbed *embed,
g_return_val_if_fail (EPHY_IS_TAB (tab), FALSE);
g_return_val_if_fail (window->priv->active_tab == tab, FALSE);
- window = ephy_tab_get_window (tab);
- g_return_val_if_fail (window != NULL, FALSE);
-
show_embed_popup (window, tab, event);
return FALSE;
@@ -1482,7 +1479,7 @@ ephy_window_set_active_tab (EphyWindow *window, EphyTab *new_tab)
GtkToggleAction *action;
g_return_if_fail (EPHY_IS_WINDOW (window));
- if (ephy_tab_get_window (new_tab) != window) return;
+ g_return_if_fail (gtk_widget_get_toplevel (GTK_WIDGET (new_tab)) == GTK_WIDGET (window));
old_tab = window->priv->active_tab;