aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorThomas Meire <blackskad@gmail.com>2010-01-17 17:05:26 +0800
committerThomas Meire <blackskad@gmail.com>2010-01-21 08:20:08 +0800
commita988a27966b67140d57695edd32b8563cb3a2d03 (patch)
tree0c8e6b54c13aa8ec562666c906f71dd0f011a510 /libempathy-gtk
parentd128e3a36e43a08a9dfe4a2c42b9485e146faeae (diff)
downloadgsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.tar
gsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.tar.gz
gsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.tar.bz2
gsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.tar.lz
gsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.tar.xz
gsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.tar.zst
gsoc2013-empathy-a988a27966b67140d57695edd32b8563cb3a2d03.zip
make the adium theme respect new_search
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 0a505eb57..41a36ab64 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -708,6 +708,9 @@ theme_adium_find_previous (EmpathyChatView *view,
const gchar *search_criteria,
gboolean new_search)
{
+ if (new_search) {
+ webkit_web_view_unmark_text_matches (WEBKIT_WEB_VIEW (view));
+ }
return webkit_web_view_search_text (WEBKIT_WEB_VIEW (view),
search_criteria, FALSE,
FALSE, TRUE);
@@ -718,6 +721,9 @@ theme_adium_find_next (EmpathyChatView *view,
const gchar *search_criteria,
gboolean new_search)
{
+ if (new_search) {
+ webkit_web_view_unmark_text_matches (WEBKIT_WEB_VIEW (view));
+ }
return webkit_web_view_search_text (WEBKIT_WEB_VIEW (view),
search_criteria, FALSE,
TRUE, TRUE);