diff options
author | Benjamin Otte <otte@gnome.org> | 2009-08-15 04:25:37 +0800 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-08-15 05:13:56 +0800 |
commit | ef8c693c89b1ecf9b028d5d75ef8e3113dc26348 (patch) | |
tree | e8040cf833a0e682d1c9f899067e5dd70822d32e /src/ephy-find-toolbar.c | |
parent | 013bbd59ea30afe7a6005b13fc27bf4158ccf674 (diff) | |
download | gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.tar gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.tar.gz gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.tar.bz2 gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.tar.lz gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.tar.xz gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.tar.zst gsoc2013-epiphany-ef8c693c89b1ecf9b028d5d75ef8e3113dc26348.zip |
Update the currently selected item after a case sensitivity change
Try to keep the currently selected item selected, but if it doesn't
match case, find the next match.
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r-- | src/ephy-find-toolbar.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 5de45bb9b..8cf490e78 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -404,6 +404,24 @@ case_sensitive_toggled_cb (GtkWidget *check, } ephy_find_toolbar_mark_matches (toolbar); + + /* + * If we now use the stricter method (and are case sensitive), + * check that the current selection still matches. If not, find the + * next one. + * This currently requires going back and then forward, because + * there's no function in WebKit that would verify the current selection. + */ + if (case_sensitive) + { + EphyEmbedFindResult result; + + result = real_find (toolbar->priv, FALSE); + if (result != EPHY_FIND_NOTFOUND) + result = real_find (toolbar->priv, TRUE); + + set_status (toolbar, result); + } } static gboolean |