aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-12-02 05:29:20 +0800
committerChristian Persch <chpe@src.gnome.org>2006-12-02 05:29:20 +0800
commit4521b7af2f9f9b9019486cb0ed9cdade37b6fd50 (patch)
treec7dd23cb8c8a85c1b43878fd97ccee8bbd92a916 /src
parentfb2c1c3d03f4333971eb1048bd3992ba20f45577 (diff)
downloadgsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.tar
gsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.tar.gz
gsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.tar.bz2
gsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.tar.lz
gsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.tar.xz
gsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.tar.zst
gsoc2013-epiphany-4521b7af2f9f9b9019486cb0ed9cdade37b6fd50.zip
Another mozilla API change.
2006-12-01 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: (ephy_embed_find_find_again): * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: * src/ephy-find-toolbar.c: (ephy_find_toolbar_find_next), (ephy_find_toolbar_find_previous): Another mozilla API change. * m4/gecko.m4: Add -lxpcomglue_s to EXTRA_LIBS on trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-find-toolbar.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 6a7d12def..82f778a18 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -589,28 +589,34 @@ ephy_find_toolbar_set_embed (EphyFindToolbar *toolbar,
void
ephy_find_toolbar_find_next (EphyFindToolbar *toolbar)
{
+ GtkWidget *widget = GTK_WIDGET (toolbar);
+ EphyFindToolbarPrivate *priv = toolbar->priv;
EphyEmbedFindResult result;
- result = ephy_embed_find_find_again (get_find (toolbar), TRUE);
+ result = ephy_embed_find_find_again (get_find (toolbar), TRUE,
+ priv->links_only);
set_status (toolbar, result);
- if (!GTK_WIDGET_VISIBLE(toolbar)) {
- gtk_widget_show (GTK_WIDGET (toolbar));
- gtk_widget_grab_focus (GTK_WIDGET (toolbar));
+ if (!GTK_WIDGET_VISIBLE (widget)) {
+ gtk_widget_show (widget);
+ gtk_widget_grab_focus (widget);
}
}
void
ephy_find_toolbar_find_previous (EphyFindToolbar *toolbar)
{
+ GtkWidget *widget = GTK_WIDGET (toolbar);
+ EphyFindToolbarPrivate *priv = toolbar->priv;
EphyEmbedFindResult result;
- result = ephy_embed_find_find_again (get_find (toolbar), FALSE);
+ result = ephy_embed_find_find_again (get_find (toolbar), FALSE,
+ priv->links_only);
set_status (toolbar, result);
- if (!GTK_WIDGET_VISIBLE(toolbar)) {
- gtk_widget_show (GTK_WIDGET (toolbar));
- gtk_widget_grab_focus (GTK_WIDGET (toolbar));
+ if (!GTK_WIDGET_VISIBLE (widget)) {
+ gtk_widget_show (widget);
+ gtk_widget_grab_focus (widget);
}
}