[empathy] make the adium theme respect new_search
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] make the adium theme respect new_search
- Date: Thu, 21 Jan 2010 10:45:14 +0000 (UTC)
commit a988a27966b67140d57695edd32b8563cb3a2d03
Author: Thomas Meire <blackskad gmail com>
Date: Sun Jan 17 10:05:26 2010 +0100
make the adium theme respect new_search
libempathy-gtk/empathy-theme-adium.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 0a505eb..41a36ab 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]