From 8c812cfbd960392d2acee585c3d7d3030d3e3fa8 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 25 Aug 2010 12:08:02 +0100 Subject: Add an EmpathyIndividualView feature for receiving Persona drops This is necessary to avoid Personas being droppable on the main contact list, which makes no sense (for the time being). Helps: bgo#627715 --- src/empathy-main-window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 0efa4a97d..07725fa3b 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -1673,9 +1673,12 @@ empathy_main_window_init (EmpathyMainWindow *window) individual_manager); g_object_unref (individual_manager); + /* For the moment, we disallow Persona drops onto the main contact list (e.g. from things such as + * the EmpathyPersonaView in the linking dialogue). No code is hooked up to do anything on a Persona + * drop, so allowing them would achieve nothing except confusion. */ priv->individual_view = empathy_individual_view_new ( priv->individual_store, - EMPATHY_INDIVIDUAL_VIEW_FEATURE_ALL, + EMPATHY_INDIVIDUAL_VIEW_FEATURE_ALL ^ EMPATHY_INDIVIDUAL_VIEW_FEATURE_PERSONA_DROP, EMPATHY_INDIVIDUAL_FEATURE_ALL); priv->butterfly_log_migration_members_changed_id = g_signal_connect ( -- cgit v1.2.3