]> git.0d.be Git - empathy.git/commitdiff
empathy_chat_paste: paste to to search bar if visible (#629594)
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 14 Sep 2010 09:13:00 +0000 (11:13 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 14 Sep 2010 09:13:40 +0000 (11:13 +0200)
libempathy-gtk/empathy-chat.c

index a200dc1810a7b10a49632a9d03448dd3ef1d3448..166944885af4aaf285ec5f11b90311a5011246b4 100644 (file)
@@ -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;