aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);
}
}