aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2010-11-17 19:16:17 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2010-11-17 21:28:06 +0800
commit880bc8eddf459b8eb25dd2ee5189a0f160dc690d (patch)
tree399b5010c8c74771bf034826f2aacbe2f43271bb /libempathy-gtk/empathy-individual-view.c
parent3889df3fdf5964f32a96912cee0c5b02e7bcfb58 (diff)
downloadgsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.tar
gsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.tar.gz
gsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.tar.bz2
gsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.tar.lz
gsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.tar.xz
gsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.tar.zst
gsoc2013-empathy-880bc8eddf459b8eb25dd2ee5189a0f160dc690d.zip
Display the phone next to the status
As shown in the mockup in bug 547658.
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r--libempathy-gtk/empathy-individual-view.c41
1 files changed, 2 insertions, 39 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 4fef0d733..a04682569 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1193,36 +1193,6 @@ individual_view_avatar_cell_data_func (GtkTreeViewColumn *tree_column,
}
static void
-individual_view_phone_cell_data_func (GtkTreeViewColumn *tree_column,
- GtkCellRenderer *cell,
- GtkTreeModel *model,
- GtkTreeIter *iter,
- EmpathyIndividualView *view)
-{
- gboolean is_group;
- gboolean is_active;
- gchar **types;
-
- gtk_tree_model_get (model, iter,
- EMPATHY_INDIVIDUAL_STORE_COL_IS_GROUP, &is_group,
- EMPATHY_INDIVIDUAL_STORE_COL_IS_ACTIVE, &is_active,
- EMPATHY_INDIVIDUAL_STORE_COL_CLIENT_TYPES, &types,
- -1);
-
- g_object_set (cell,
- "visible",
- !is_group
- && types != NULL
- && g_strv_length (types) > 0
- && !tp_strdiff (types[0], "phone"),
- NULL);
-
- g_strfreev (types);
-
- individual_view_cell_set_background (view, cell, is_group, is_active);
-}
-
-static void
individual_view_text_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *model,
@@ -1863,15 +1833,8 @@ individual_view_constructed (GObject *object)
"is_group", EMPATHY_INDIVIDUAL_STORE_COL_IS_GROUP);
gtk_tree_view_column_add_attribute (col, cell,
"compact", EMPATHY_INDIVIDUAL_STORE_COL_COMPACT);
-
- /* Phone Icon */
- cell = gtk_cell_renderer_pixbuf_new ();
- gtk_tree_view_column_pack_start (col, cell, FALSE);
- gtk_tree_view_column_set_cell_data_func (col, cell,
- (GtkTreeCellDataFunc) individual_view_phone_cell_data_func,
- view, NULL);
-
- g_object_set (cell, "visible", FALSE, "icon-name", "phone", NULL);
+ gtk_tree_view_column_add_attribute (col, cell,
+ "client-types", EMPATHY_INDIVIDUAL_STORE_COL_CLIENT_TYPES);
/* Audio Call Icon */
cell = empathy_cell_renderer_activatable_new ();