aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-list-view.c
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-gtk/empathy-contact-list-view.c
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-gtk/empathy-contact-list-view.c')
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index c952bb8ae..bd432f261 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -816,6 +816,7 @@ contact_list_view_call_activated_cb (
g_object_unref (contact);
}
+#if HAVE_FAVOURITE_CONTACTS
static void
contact_list_view_favourite_toggled_cb (
EmpathyCellRendererActivatable *cell,
@@ -850,6 +851,7 @@ contact_list_view_favourite_toggled_cb (
g_object_unref (contact);
}
+#endif /* HAVE_FAVOURITE_CONTACTS */
static void
contact_list_view_cell_set_background (EmpathyContactListView *view,
@@ -990,10 +992,12 @@ contact_list_view_text_cell_data_func (GtkTreeViewColumn *tree_column,
EMPATHY_CONTACT_LIST_STORE_COL_NAME, &name,
-1);
+#if HAVE_FAVOURITE_CONTACTS
if (is_group && !g_strcmp0 (name, EMPATHY_GROUP_FAVOURITES)) {
g_free (name);
name = g_strdup (_(EMPATHY_GROUP_FAVOURITES));
}
+#endif /* HAVE_FAVOURITE_CONTACTS */
g_object_set (cell,
"show-status", show_status,
@@ -1038,6 +1042,7 @@ contact_list_view_expander_cell_data_func (GtkTreeViewColumn *column,
contact_list_view_cell_set_background (view, cell, is_group, is_active);
}
+#if HAVE_FAVOURITE_CONTACTS
static void
contact_list_view_favourite_cell_data_func (
GtkTreeViewColumn *tree_column,
@@ -1070,6 +1075,7 @@ contact_list_view_favourite_cell_data_func (
contact_list_view_cell_set_background (view, cell, is_group, is_active);
}
+#endif /* HAVE_FAVOURITE_CONTACTS */
static void
contact_list_view_row_expand_or_collapse_cb (EmpathyContactListView *view,
@@ -1174,6 +1180,7 @@ contact_list_view_setup (EmpathyContactListView *view)
col = gtk_tree_view_column_new ();
+#if HAVE_FAVOURITE_CONTACTS
/* Favourite Icon */
cell = empathy_cell_renderer_activatable_new ();
gtk_tree_view_column_pack_start (col, cell, FALSE);
@@ -1189,6 +1196,7 @@ contact_list_view_setup (EmpathyContactListView *view)
g_signal_connect (cell, "path-activated",
G_CALLBACK (contact_list_view_favourite_toggled_cb),
view);
+#endif
/* State */
cell = gtk_cell_renderer_pixbuf_new ();