aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-protocol-chooser.c5
-rw-r--r--libempathy-gtk/empathy-protocol-chooser.h4
-rw-r--r--src/empathy-account-assistant.c2
3 files changed, 9 insertions, 2 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);
}
}
diff --git a/libempathy-gtk/empathy-protocol-chooser.h b/libempathy-gtk/empathy-protocol-chooser.h
index a649aa578..088d1b664 100644
--- a/libempathy-gtk/empathy-protocol-chooser.h
+++ b/libempathy-gtk/empathy-protocol-chooser.h
@@ -59,7 +59,9 @@ struct _EmpathyProtocolChooserClass
};
typedef gboolean (*EmpathyProtocolChooserFilterFunc) (TpConnectionManager *cm,
- TpConnectionManagerProtocol *protocol, gpointer user_data);
+ TpConnectionManagerProtocol *protocol,
+ gboolean is_gtalk,
+ gpointer user_data);
GType empathy_protocol_chooser_get_type (void) G_GNUC_CONST;
GtkWidget * empathy_protocol_chooser_new (void);
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index eecbb5d7b..9e6a5fc04 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -373,6 +373,7 @@ static gboolean
account_assistant_chooser_enter_details_filter_func (
TpConnectionManager *cm,
TpConnectionManagerProtocol *protocol,
+ gboolean is_gtalk,
gpointer user_data)
{
if (!tp_strdiff (protocol->name, "local-xmpp") ||
@@ -386,6 +387,7 @@ static gboolean
account_assistant_chooser_create_account_filter_func (
TpConnectionManager *cm,
TpConnectionManagerProtocol *protocol,
+ gboolean is_gtalk,
gpointer user_data)
{
return tp_connection_manager_protocol_can_register (protocol);