[empathy/gnome-2-28-candidate] Don't paste if the remote contact is disconnected (#595417).
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-28-candidate] Don't paste if the remote contact is disconnected (#595417).
- Date: Thu, 17 Sep 2009 12:56:57 +0000 (UTC)
commit 6d777eefedb4d7f4666840da0df312f2cce449e5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Sep 17 14:04:25 2009 +0200
Don't paste if the remote contact is disconnected (#595417).
libempathy-gtk/empathy-chat.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index c08b49c..d625371 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1957,9 +1957,16 @@ empathy_chat_paste (EmpathyChat *chat)
{
GtkTextBuffer *buffer;
GtkClipboard *clipboard;
+ EmpathyChatPriv *priv;
g_return_if_fail (EMPATHY_IS_CHAT (chat));
+ priv = GET_PRIV (chat);
+
+ if (priv->tp_chat == NULL ||
+ !GTK_WIDGET_IS_SENSITIVE (chat->input_text_view))
+ return;
+
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view));
clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]