aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-12-08 02:15:33 +0800
committerChristian Persch <chpe@src.gnome.org>2005-12-08 02:15:33 +0800
commit71b468b05580953e70aabce5b68586ed8967c71c (patch)
treee20cf2a7889bd3555d7466a6543565c3969d5e85 /src/ephy-window.c
parentc92bf4456143bc5e230bd0153d4bc938b68fddfc (diff)
downloadgsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.tar
gsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.tar.gz
gsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.tar.bz2
gsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.tar.lz
gsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.tar.xz
gsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.tar.zst
gsoc2013-epiphany-71b468b05580953e70aabce5b68586ed8967c71c.zip
Minor code cleanup.
2005-12-07 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyFind.cpp: Minor code cleanup. * src/ephy-find-toolbar.c: (entry_key_press_event_cb), (ephy_find_toolbar_close): Also check for GDK_ISO_Enter. * src/ephy-window.c: (sync_tab_address): Close the find toolbar when loading a new page.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 6f64ff023..87cb491f8 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1300,13 +1300,18 @@ setup_ui_manager (EphyWindow *window)
}
static void
-sync_tab_address (EphyTab *tab, GParamSpec *pspec, EphyWindow *window)
+sync_tab_address (EphyTab *tab,
+ GParamSpec *pspec,
+ EphyWindow *window)
{
- if (window->priv->closing) return;
+ EphyWindowPrivate *priv = window->priv;
+
+ if (priv->closing) return;
- ephy_toolbar_set_location (window->priv->toolbar,
+ ephy_toolbar_set_location (priv->toolbar,
ephy_tab_get_address (tab),
ephy_tab_get_typed_address (tab));
+ ephy_find_toolbar_request_close (priv->find_toolbar);
}
static void