aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-protocol-chooser.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-19 22:01:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-19 23:46:54 +0800
commit8da0a6feaddfa5ab7df373f0f85c7124b31774e8 (patch)
treea14e5cdc29bb6ae642d75ec1a102d2e14a75f745 /libempathy-gtk/empathy-protocol-chooser.c
parent3241a32e5b7fc4ee8ae8907fbdde74d98660ebca (diff)
downloadgsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.tar
gsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.tar.gz
gsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.tar.bz2
gsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.tar.lz
gsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.tar.xz
gsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.tar.zst
gsoc2013-empathy-8da0a6feaddfa5ab7df373f0f85c7124b31774e8.zip
Pass a boolean saying if the protocol is Google Talk or not to EmpathyProtocolChooserFilterFunc
That's the only way to filter Google Talk if we want to.
Diffstat (limited to 'libempathy-gtk/empathy-protocol-chooser.c')
-rw-r--r--libempathy-gtk/empathy-protocol-chooser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-protocol-chooser.c b/libempathy-gtk/empathy-protocol-chooser.c
index 9c4891765..7b706b05d 100644
--- a/libempathy-gtk/empathy-protocol-chooser.c
+++ b/libempathy-gtk/empathy-protocol-chooser.c
@@ -395,10 +395,12 @@ protocol_chooser_filter_visible_func (GtkTreeModel *model,
TpConnectionManager *cm = NULL;
gchar *protocol_name = NULL;
gboolean visible = FALSE;
+ gboolean is_gtalk;
gtk_tree_model_get (model, iter,
COL_CM, &cm,
COL_PROTOCOL_NAME, &protocol_name,
+ COL_IS_GTALK, &is_gtalk,
-1);
if (cm != NULL && protocol_name != NULL)
@@ -410,7 +412,8 @@ protocol_chooser_filter_visible_func (GtkTreeModel *model,
if (protocol != NULL)
{
- visible = priv->filter_func (cm, protocol, priv->filter_user_data);
+ visible = priv->filter_func (cm, protocol, is_gtalk,
+ priv->filter_user_data);
}
}