[empathy] empathy_chat_paste: paste to to search bar if visible (#629594)



commit 9ea4b778978146d5a79a0d101d6f96b72cb9cf13
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Sep 14 11:13:00 2010 +0200

    empathy_chat_paste: paste to to search bar if visible (#629594)

 libempathy-gtk/empathy-chat.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index a200dc1..1669448 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -3244,6 +3244,11 @@ empathy_chat_paste (EmpathyChat *chat)
 
 	priv = GET_PRIV (chat);
 
+	if (gtk_widget_get_visible (priv->search_bar)) {
+		empathy_search_bar_paste_clipboard (EMPATHY_SEARCH_BAR (priv->search_bar));
+		return;
+	}
+
 	if (priv->tp_chat == NULL ||
 	    !gtk_widget_is_sensitive (chat->input_text_view))
 		return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]