}
gtk_widget_set_sensitive (priv->menu_conv_log, log_exists);
- g_object_set (priv->menu_conv_call, "visible", can_voip, NULL);
- g_object_set (priv->menu_conv_call_separator, "visible", can_voip, NULL);
+#ifdef HAVE_VOIP
+ gtk_widget_set_sensitive (priv->menu_conv_call, can_voip);
+#else
+ g_object_set (priv->menu_conv_call, "visible", FALSE, NULL);
+ g_object_set (priv->menu_conv_call_separator, "visible", FALSE, NULL);
+#endif
}
static void
GtkTreeModel *model,
GtkTreeIter *iter,
EmpathyContactListView *view);
+#ifdef HAVE_VOIP
static void contact_list_view_voip_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *model,
GtkTreeIter *iter,
EmpathyContactListView *view);
+#endif
static void contact_list_view_avatar_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *model,
GtkTreePath *path,
GtkTreeViewColumn *col,
gpointer user_data);
+#ifdef HAVE_VOIP
static void contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell,
const gchar *path_string,
EmpathyContactListView *view);
+#endif
static void contact_list_view_row_expand_or_collapse_cb (EmpathyContactListView *view,
GtkTreeIter *iter,
GtkTreePath *path,
N_("_View Previous Conversations"), NULL, N_("View previous conversations with this contact"),
G_CALLBACK (contact_list_view_action_cb)
},
+#ifdef HAVE_VOIP
{ "Call", EMPATHY_IMAGE_VOIP,
N_("_Call"), NULL, N_("Start a voice or video conversation with this contact"),
G_CALLBACK (contact_list_view_action_cb)
},
+#endif
};
static guint n_entries = G_N_ELEMENTS (entries);
"<ui>"
" <popup name='Contact'>"
" <menuitem action='Chat'/>"
+#ifdef HAVE_VOIP
" <menuitem action='Call'/>"
+#endif
" <menuitem action='Log'/>"
" <menuitem action='SendFile'/>"
" <separator/>"
gtk_tree_view_column_add_attribute (col, cell,
"is_group", COL_IS_GROUP);
+#ifdef HAVE_VOIP
/* Voip Capability Icon */
cell = empathy_cell_renderer_activatable_new ();
gtk_tree_view_column_pack_start (col, cell, FALSE);
g_signal_connect (cell, "path-activated",
G_CALLBACK (contact_list_view_voip_activated_cb),
view);
+#endif
/* Avatar */
cell = gtk_cell_renderer_pixbuf_new ();
contact_list_view_cell_set_background (view, cell, is_group, is_active);
}
+#ifdef HAVE_VOIP
static void
contact_list_view_voip_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
contact_list_view_cell_set_background (view, cell, is_group, is_active);
}
+#endif
static void
contact_list_view_avatar_cell_data_func (GtkTreeViewColumn *tree_column,
}
}
+#ifdef HAVE_VOIP
static void
contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell,
const gchar *path_string,
g_object_unref (contact);
}
}
+#endif
static void