aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-01 01:25:55 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-01 17:13:12 +0800
commit69a4acc92a7891595c624e89f2d5d0fc4e9327ff (patch)
treef7a83f8626a55049a063bc4de2f0440e3b06cf3a /libempathy-gtk/empathy-individual-view.c
parent628a7449101e36c00fffb76260d828737913c232 (diff)
downloadgsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.tar
gsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.tar.gz
gsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.tar.bz2
gsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.tar.lz
gsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.tar.xz
gsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.tar.zst
gsoc2013-empathy-69a4acc92a7891595c624e89f2d5d0fc4e9327ff.zip
Add an INDIVIDUAL_CALL feature to EmpathyIndividualView
This allows the context menu on the VoIP icon to be disabled, so that it can't be used from the linking dialogue. Closes: bgo#628433
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r--libempathy-gtk/empathy-individual-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index f8822bc81..d18fb2a10 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -961,6 +961,7 @@ individual_view_call_activated_cb (EmpathyCellRendererActivatable *cell,
const gchar *path_string,
EmpathyIndividualView *view)
{
+ EmpathyIndividualViewPriv *priv = GET_PRIV (view);
GtkWidget *menu;
GtkTreeModel *model;
GtkTreeIter iter;
@@ -969,6 +970,9 @@ individual_view_call_activated_cb (EmpathyCellRendererActivatable *cell,
GtkMenuShell *shell;
GtkWidget *item;
+ if (!(priv->view_features & EMPATHY_INDIVIDUAL_VIEW_FEATURE_INDIVIDUAL_CALL))
+ return;
+
model = gtk_tree_view_get_model (GTK_TREE_VIEW (view));
if (!gtk_tree_model_get_iter_from_string (model, &iter, path_string))
return;