aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-find.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-11-03 20:37:15 +0800
committerChristian Persch <chpe@src.gnome.org>2005-11-03 20:37:15 +0800
commit1c87d0af88f833fff85b468ef57a7cb660805fb7 (patch)
treed15be9bdc630e4f3a43e104f0d891554ff9ce126 /embed/ephy-embed-find.c
parent5304b565cd6192c80bae5473d3ac2364dc0de7bb (diff)
downloadgsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.tar
gsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.tar.gz
gsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.tar.bz2
gsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.tar.lz
gsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.tar.xz
gsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.tar.zst
gsoc2013-epiphany-1c87d0af88f833fff85b468ef57a7cb660805fb7.zip
More detailed result code from find backend.
2005-11-03 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: More detailed result code from find backend. * src/ephy-find-toolbar.c: (set_status), (clear_status), (entry_changed_cb), (ephy_find_toolbar_init), (ephy_find_toolbar_find_next), (ephy_find_toolbar_find_previous), (ephy_find_toolbar_open): Add status text to the find toolbar. Reverse Next/Previous button order.
Diffstat (limited to 'embed/ephy-embed-find.c')
-rw-r--r--embed/ephy-embed-find.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/embed/ephy-embed-find.c b/embed/ephy-embed-find.c
index f5ddb664e..80ef28b18 100644
--- a/embed/ephy-embed-find.c
+++ b/embed/ephy-embed-find.c
@@ -46,7 +46,15 @@ ephy_embed_find_set_properties (EphyEmbedFind *find,
iface->set_properties (find, search_string, case_sensitive);
}
-gboolean
+/**
+ * ephy_embed_find_find:
+ * @embed: an #EphyEmbedFind
+ * @search_string: the text to search for
+ * @links_only: whether to only search the text in links
+ *
+ * Return value: whether a match was found
+ **/
+EphyEmbedFindResult
ephy_embed_find_find (EphyEmbedFind *find,
const char *search_string,
gboolean links_only)
@@ -56,13 +64,13 @@ ephy_embed_find_find (EphyEmbedFind *find,
}
/**
- * ephy_embed_find_search_again:
+ * ephy_embed_find_find_again:
* @embed: an #EphyEmbedFind
* @forward %TRUE to search forwards in the document
*
- * Return value: %TRUE if a match was found
+ * Return value: whether a match was found
**/
-gboolean
+EphyEmbedFindResult
ephy_embed_find_find_again (EphyEmbedFind *find,
gboolean forward)
{
@@ -76,6 +84,8 @@ ephy_embed_find_find_again (EphyEmbedFind *find,
* @mask:
*
* Activates the currently focused link, if there is any.
+ *
+ * Return value: %TRUE if a link was activated
**/
gboolean
ephy_embed_find_activate_link (EphyEmbedFind *find,