[nautilus-sendto] Only display contacts which can accept files. (Closes: #576277)
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-sendto] Only display contacts which can accept files. (Closes: #576277)
- Date: Thu, 25 Jun 2009 18:28:26 +0000 (UTC)
commit fa2697e1b0dd20eb675a77ad6d99914a2512dd37
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Thu Jun 25 19:27:32 2009 +0100
Only display contacts which can accept files. (Closes: #576277)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
src/plugins/empathy/empathy.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/empathy/empathy.c b/src/plugins/empathy/empathy.c
index 9594dd4..e5a829a 100644
--- a/src/plugins/empathy/empathy.c
+++ b/src/plugins/empathy/empathy.c
@@ -29,6 +29,7 @@
#include <telepathy-glib/enums.h>
+#include <libempathy/empathy-contact.h>
#include <libempathy/empathy-debug.h>
#include <libempathy/empathy-contact-manager.h>
#include <libempathy/empathy-ft-factory.h>
@@ -86,6 +87,9 @@ get_contacts_widget (NstPlugin *plugin)
manager = empathy_contact_manager_dup_singleton ();
selector = empathy_contact_selector_new (EMPATHY_CONTACT_LIST (manager));
+ empathy_contact_selector_set_visible (EMPATHY_CONTACT_SELECTOR (selector),
+ (EmpathyContactSelectorFilterFunc) empathy_contact_can_send_files, NULL);
+
g_object_unref (manager);
return selector;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]