diff options
author | Thomas Meire <blackskad@gmail.com> | 2010-01-12 23:34:39 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-12 23:36:01 +0800 |
commit | 0ee842ac627f30fa14d75b06cd7147a67090731e (patch) | |
tree | fb0732e13d95ca15fa7a0ad29d88b3c26d95c3e8 /libempathy-gtk/empathy-chat-text-view.c | |
parent | 183fa2e8a94d94a7098120fc43cde9ad83869de6 (diff) | |
download | gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.tar gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.tar.gz gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.tar.bz2 gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.tar.lz gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.tar.xz gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.tar.zst gsoc2013-empathy-0ee842ac627f30fa14d75b06cd7147a67090731e.zip |
Add search bar in chat text views (#585168)
Diffstat (limited to 'libempathy-gtk/empathy-chat-text-view.c')
-rw-r--r-- | libempathy-gtk/empathy-chat-text-view.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c index 4f38865f6..fcd6ebb32 100644 --- a/libempathy-gtk/empathy-chat-text-view.c +++ b/libempathy-gtk/empathy-chat-text-view.c @@ -880,7 +880,7 @@ chat_text_view_find_previous (EmpathyChatView *view, from_start = TRUE; } - if (priv->find_mark_previous) { + if (!new_search && priv->find_mark_previous) { gtk_text_buffer_get_iter_at_mark (buffer, &iter_at_mark, priv->find_mark_previous); @@ -995,7 +995,7 @@ chat_text_view_find_next (EmpathyChatView *view, from_start = TRUE; } - if (priv->find_mark_next) { + if (!new_search && priv->find_mark_next) { gtk_text_buffer_get_iter_at_mark (buffer, &iter_at_mark, priv->find_mark_next); @@ -1161,7 +1161,6 @@ chat_text_view_highlight (EmpathyChatView *view, &iter_match_end); iter = iter_match_end; - gtk_text_iter_forward_char (&iter); } } |