aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-02-24 02:08:05 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-15 16:28:40 +0800
commit50a0138f16ceabeecd1ee92f127684a9d50b3e70 (patch)
treea4d995ff700cb3510ccd6c16c12d4e3c5a8a8f04 /libempathy
parentb8657a61fe72be0da2d91325b0851dd4d7fd533c (diff)
downloadgsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar
gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.gz
gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.bz2
gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.lz
gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.xz
gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.tar.zst
gsoc2013-empathy-50a0138f16ceabeecd1ee92f127684a9d50b3e70.zip
Add a favorite contacts build option and make Moblin support automatically turn it on.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/Makefile.am2
-rw-r--r--libempathy/empathy-contact-list.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libempathy/Makefile.am b/libempathy/Makefile.am
index 1f1423952..057203bd3 100644
--- a/libempathy/Makefile.am
+++ b/libempathy/Makefile.am
@@ -10,6 +10,7 @@ AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"empathy\" \
$(TPL_CFLAGS) \
$(LIBEMPATHY_CFLAGS) \
+ $(FAVOURITE_CONTACTS_CFLAGS) \
$(GEOCLUE_CFLAGS) \
$(NETWORK_MANAGER_CFLAGS) \
$(CONNMAN_CFLAGS) \
@@ -119,6 +120,7 @@ nodist_libempathy_la_SOURCES =\
libempathy_la_LIBADD = \
$(top_builddir)/extensions/libemp-extensions.la \
$(LIBEMPATHY_LIBS) \
+ $(FAVOURITE_CONTACTS_LIBS) \
$(GEOCLUE_LIBS) \
$(TPL_LIBS) \
$(NETWORK_MANAGER_LIBS) \
diff --git a/libempathy/empathy-contact-list.c b/libempathy/empathy-contact-list.c
index 65a1edeec..a46fc8db4 100644
--- a/libempathy/empathy-contact-list.c
+++ b/libempathy/empathy-contact-list.c
@@ -256,12 +256,14 @@ gboolean
empathy_contact_list_contact_is_favourite (EmpathyContactList *list,
EmpathyContact *contact)
{
+#if HAVE_FAVOURITE_CONTACTS
GList *groups, *l;
groups = empathy_contact_list_get_groups (list, contact);
for (l = groups; l; l = l->next)
if (!g_strcmp0 (l->data, EMPATHY_GROUP_FAVOURITES))
return TRUE;
+#endif /* HAVE_FAVOURITE_CONTACTS */
return FALSE;
}