From 9ea4b778978146d5a79a0d101d6f96b72cb9cf13 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 14 Sep 2010 11:13:00 +0200 Subject: empathy_chat_paste: paste to to search bar if visible (#629594) --- libempathy-gtk/empathy-chat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index a200dc181..166944885 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; -- cgit v1.2.3