[empathy: 15/17] [empathy-contact-list-view] Don't accept file drags to offline/non-FT contacts
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy: 15/17] [empathy-contact-list-view] Don't accept file drags to offline/non-FT contacts
- Date: Mon, 30 Nov 2009 15:09:52 +0000 (UTC)
commit 89bc747b15ff519b81b8b153bcf94c8cd19245b1
Author: Shaun McCance <Shaun McCance>
Date: Wed Oct 7 10:47:41 2009 -0500
[empathy-contact-list-view] Don't accept file drags to offline/non-FT contacts
libempathy-gtk/empathy-contact-list-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 0a9b260..6b25cc1 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -505,7 +505,9 @@ contact_list_view_drag_motion (GtkWidget *widget,
gtk_tree_model_get (model, &iter,
EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact,
-1);
- if (contact) {
+ if (contact != NULL &&
+ empathy_contact_is_online (contact) &&
+ (empathy_contact_get_capabilities (contact) & EMPATHY_CAPABILITIES_FT)) {
gdk_drag_status (context, GDK_ACTION_COPY, time_);
gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (widget),
path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]