diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-14 17:13:00 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-14 17:13:40 +0800 |
commit | 9ea4b778978146d5a79a0d101d6f96b72cb9cf13 (patch) | |
tree | 8eab40d4787931274be0f452791be9fec8ad50e6 | |
parent | b932028b82cfb31da782beab7bc71248cc19e24f (diff) | |
download | gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.tar gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.tar.gz gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.tar.bz2 gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.tar.lz gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.tar.xz gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.tar.zst gsoc2013-empathy-9ea4b778978146d5a79a0d101d6f96b72cb9cf13.zip |
empathy_chat_paste: paste to to search bar if visible (#629594)
-rw-r--r-- | 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 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; |