diff options
author | Travis Reitter <treitter@gmail.com> | 2010-07-13 03:13:02 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:37 +0800 |
commit | faa4b2c9106b84c7c083c9ef2763dbd0e6892998 (patch) | |
tree | 814b645d5ec24f161149fa76c8940337e864c8c7 /libempathy-gtk | |
parent | 9d7bdfa085b50a7c96082ffeebd5489c7192f4e2 (diff) | |
download | gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.tar gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.tar.gz gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.tar.bz2 gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.tar.lz gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.tar.xz gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.tar.zst gsoc2013-empathy-faa4b2c9106b84c7c083c9ef2763dbd0e6892998.zip |
Don't depend on Folks capabilities in the IndividualView
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 7aedea8a9..ef4f938f3 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -625,12 +625,23 @@ individual_view_drag_motion (GtkWidget *widget, not groups. */ FolksIndividual *individual; + EmpathyCapabilities caps = EMPATHY_CAPABILITIES_NONE; + gtk_tree_model_get (model, &iter, EMPATHY_INDIVIDUAL_STORE_COL_INDIVIDUAL, &individual, -1); + if (individual != NULL) + { + EmpathyContact *contact = NULL; + + contact = empathy_contact_dup_from_folks_individual (individual); + caps = empathy_contact_get_capabilities (contact); + + tp_clear_object (&contact); + } + if (individual != NULL && folks_individual_is_online (individual) && - (folks_individual_get_capabilities (individual) & - FOLKS_CAPABILITIES_FLAGS_FILE_TRANSFER)) + (caps & EMPATHY_CAPABILITIES_FT)) { gdk_drag_status (context, GDK_ACTION_COPY, time_); gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (widget), |