diff options
author | Benjamin Otte <otte@gnome.org> | 2009-08-14 19:58:38 +0800 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-08-15 05:10:24 +0800 |
commit | 32a399be40bb62174bf52209825e1ab65483b160 (patch) | |
tree | 4b7bf0ff17d47598ae64a60c7cafd8dc7372d2c5 /src/ephy-find-toolbar.c | |
parent | 9ea92526ff14fce12c849c171e8343f80cce029d (diff) | |
download | gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.tar gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.tar.gz gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.tar.bz2 gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.tar.lz gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.tar.xz gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.tar.zst gsoc2013-epiphany-32a399be40bb62174bf52209825e1ab65483b160.zip |
Remove function set_string_and_highlight()
The function did the same thing as ephy_find_toolbar_set_properties(),
so use that function always.
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r-- | 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 6a2eac05e..1bd2e3d25 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); } |