From 190a05cdcd2998457472f6e4f45fbfa01acfeb15 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Mon, 17 May 2010 14:10:05 -0500 Subject: ephy-find-toolbar: remove useless ephy_find_toolbar_set_selection Bug #611499 --- src/ephy-find-toolbar.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 0241b1541..4d921975c 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -885,15 +885,6 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar, gtk_widget_grab_focus (GTK_WIDGET (toolbar)); } -static void -ephy_find_toolbar_set_selection (EphyFindToolbar *toolbar, - gboolean attention) -{ - WebKitWebView *web_view = toolbar->priv->web_view; - - webkit_web_view_set_highlight_text_matches (web_view, attention); -} - void ephy_find_toolbar_close (EphyFindToolbar *toolbar) { @@ -902,7 +893,8 @@ ephy_find_toolbar_close (EphyFindToolbar *toolbar) gtk_widget_hide (GTK_WIDGET (toolbar)); if (priv->web_view == NULL) return; - ephy_find_toolbar_set_selection (toolbar, FALSE); + + webkit_web_view_set_highlight_text_matches (priv->web_view, FALSE); } void -- cgit v1.2.3