aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-01-23 10:43:00 +0800
committerXan Lopez <xan@src.gnome.org>2009-01-23 10:43:00 +0800
commit5f4f7285ba07e471755397fc64f7ae80b5d9fc20 (patch)
tree695896d3c54c21cb9d7c857861c139e54a66df0f /src/ephy-find-toolbar.c
parent56d9b5384def19d10010096a6397e6a5e57b46d0 (diff)
downloadgsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.tar
gsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.tar.gz
gsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.tar.bz2
gsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.tar.lz
gsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.tar.xz
gsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.tar.zst
gsoc2013-epiphany-5f4f7285ba07e471755397fc64f7ae80b5d9fc20.zip
ephy-find-toolbar: make indentation homogenenous.
svn path=/trunk/; revision=8721
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r--src/ephy-find-toolbar.c73
1 files changed, 36 insertions, 37 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index d214f616c..bd550a635 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -229,55 +229,54 @@ find_prev_cb (EphyFindToolbar *toolbar)
static void
set_string_and_highlight (EphyFindToolbarPrivate *priv, const char *find_string)
{
- WebKitWebView *web_view = priv->web_view;
- gboolean case_sensitive;
+ WebKitWebView *web_view = priv->web_view;
+ gboolean case_sensitive;
- if (g_strcmp0 (priv->find_string, find_string) != 0) {
- g_free (priv->find_string);
- priv->find_string = g_strdup (find_string);
- }
+ if (g_strcmp0 (priv->find_string, find_string) != 0) {
+ g_free (priv->find_string);
+ priv->find_string = g_strdup (find_string);
+ }
- case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->case_sensitive));
+ case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->case_sensitive));
- webkit_web_view_unmark_text_matches (web_view);
- webkit_web_view_mark_text_matches (web_view,
- priv->find_string,
- case_sensitive,
- 0);
- webkit_web_view_set_highlight_text_matches (web_view, TRUE);
+ webkit_web_view_unmark_text_matches (web_view);
+ webkit_web_view_mark_text_matches (web_view,
+ priv->find_string,
+ case_sensitive,
+ 0);
+ 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;
+ EphyFindToolbarPrivate *priv = toolbar->priv;
- set_string_and_highlight (priv, find_string);
+ set_string_and_highlight (priv, find_string);
}
static EphyEmbedFindResult
real_find (EphyFindToolbarPrivate *priv,
gboolean forward)
{
- WebKitWebView *web_view = priv->web_view;
-
- gboolean case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->case_sensitive));
+ WebKitWebView *web_view = priv->web_view;
+ gboolean case_sensitive = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->case_sensitive));
- if (!webkit_web_view_search_text
- (web_view, priv->find_string, case_sensitive, TRUE, FALSE)) {
- /* not found, try to wrap */
- if (!webkit_web_view_search_text
- (web_view, priv->find_string, case_sensitive, TRUE, TRUE)) {
- /* there's no result */
- return EPHY_FIND_NOTFOUND;
- } else {
- /* found wrapped */
- return EPHY_FIND_FOUNDWRAPPED;
- }
- }
+ if (!webkit_web_view_search_text
+ (web_view, priv->find_string, case_sensitive, TRUE, FALSE)) {
+ /* not found, try to wrap */
+ if (!webkit_web_view_search_text
+ (web_view, priv->find_string, case_sensitive, TRUE, TRUE)) {
+ /* there's no result */
+ return EPHY_FIND_NOTFOUND;
+ } else {
+ /* found wrapped */
+ return EPHY_FIND_FOUNDWRAPPED;
+ }
+ }
- return EPHY_FIND_FOUND;
+ return EPHY_FIND_FOUND;
}
static EphyEmbedFindResult
@@ -285,11 +284,11 @@ ephy_find_toolbar_find (EphyFindToolbar *toolbar,
const char *find_string,
gboolean links_only)
{
- EphyFindToolbarPrivate *priv = toolbar->priv;
+ EphyFindToolbarPrivate *priv = toolbar->priv;
- set_string_and_highlight (priv, find_string);
+ set_string_and_highlight (priv, find_string);
- return real_find (priv, TRUE);
+ return real_find (priv, TRUE);
}
static void
@@ -314,7 +313,7 @@ static gboolean
ephy_find_toolbar_activate_link (EphyFindToolbar *toolbar,
GdkModifierType mask)
{
- return FALSE;
+ return FALSE;
}
static gboolean
@@ -878,9 +877,9 @@ static void
ephy_find_toolbar_set_selection (EphyFindToolbar *toolbar,
gboolean attention)
{
- WebKitWebView *web_view = toolbar->priv->web_view;
+ WebKitWebView *web_view = toolbar->priv->web_view;
- webkit_web_view_set_highlight_text_matches (web_view, attention);
+ webkit_web_view_set_highlight_text_matches (web_view, attention);
}
void