[epiphany] Remove function set_string_and_highlight()



commit 32a399be40bb62174bf52209825e1ab65483b160
Author: Benjamin Otte <otte gnome org>
Date:   Fri Aug 14 13:58:38 2009 +0200

    Remove function set_string_and_highlight()
    
    The function did the same thing as ephy_find_toolbar_set_properties(),
    so use that function always.

 src/ephy-find-toolbar.c |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 6a2eac0..1bd2e3d 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -227,8 +227,10 @@ find_prev_cb (EphyFindToolbar *toolbar)
 }
 
 static void
-set_string_and_highlight (EphyFindToolbarPrivate *priv, const char *find_string)
+ephy_find_toolbar_set_properties (EphyFindToolbar *toolbar,
+                                  const char *find_string)
 {
+        EphyFindToolbarPrivate *priv = toolbar->priv;
         WebKitWebView *web_view = priv->web_view;
         gboolean case_sensitive;
 
@@ -247,15 +249,6 @@ set_string_and_highlight (EphyFindToolbarPrivate *priv, const char *find_string)
         webkit_web_view_set_highlight_text_matches (web_view, TRUE);
 }
 
-static void
-ephy_find_toolbar_set_properties (EphyFindToolbar *toolbar,
-                                  const char *find_string)
-{
-        EphyFindToolbarPrivate *priv = toolbar->priv;
-
-        set_string_and_highlight (priv, find_string);
-}
-
 static EphyEmbedFindResult
 real_find (EphyFindToolbarPrivate *priv,
 	   gboolean forward)
@@ -289,7 +282,7 @@ ephy_find_toolbar_find (EphyFindToolbar *toolbar,
 {
         EphyFindToolbarPrivate *priv = toolbar->priv;
 
-        set_string_and_highlight (priv, find_string);
+        ephy_find_toolbar_set_properties (toolbar, find_string);
 
         return real_find (priv, TRUE);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]