[empathy] assistant: filter out facebook from the new account page
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] assistant: filter out facebook from the new account page
- Date: Thu, 11 Feb 2010 18:07:34 +0000 (UTC)
commit 438199f57bc03b42aae12a18888c73597b04c1ec
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Feb 11 14:26:36 2010 +0000
assistant: filter out facebook from the new account page
libempathy-gtk/empathy-protocol-chooser.c | 5 +++--
libempathy-gtk/empathy-protocol-chooser.h | 1 +
src/empathy-account-assistant.c | 4 +++-
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-protocol-chooser.c b/libempathy-gtk/empathy-protocol-chooser.c
index 65f70ee..72eb055 100644
--- a/libempathy-gtk/empathy-protocol-chooser.c
+++ b/libempathy-gtk/empathy-protocol-chooser.c
@@ -421,12 +421,13 @@ protocol_chooser_filter_visible_func (GtkTreeModel *model,
TpConnectionManager *cm = NULL;
gchar *protocol_name = NULL;
gboolean visible = FALSE;
- gboolean is_gtalk;
+ gboolean is_gtalk, is_facebook;
gtk_tree_model_get (model, iter,
COL_CM, &cm,
COL_PROTOCOL_NAME, &protocol_name,
COL_IS_GTALK, &is_gtalk,
+ COL_IS_FACEBOOK, &is_facebook,
-1);
if (cm != NULL && protocol_name != NULL)
@@ -438,7 +439,7 @@ protocol_chooser_filter_visible_func (GtkTreeModel *model,
if (protocol != NULL)
{
- visible = priv->filter_func (cm, protocol, is_gtalk,
+ visible = priv->filter_func (cm, protocol, is_gtalk, is_facebook,
priv->filter_user_data);
}
}
diff --git a/libempathy-gtk/empathy-protocol-chooser.h b/libempathy-gtk/empathy-protocol-chooser.h
index b4ffeb3..88b23cb 100644
--- a/libempathy-gtk/empathy-protocol-chooser.h
+++ b/libempathy-gtk/empathy-protocol-chooser.h
@@ -61,6 +61,7 @@ struct _EmpathyProtocolChooserClass
typedef gboolean (*EmpathyProtocolChooserFilterFunc) (TpConnectionManager *cm,
TpConnectionManagerProtocol *protocol,
gboolean is_gtalk,
+ gboolean is_facebook,
gpointer user_data);
GType empathy_protocol_chooser_get_type (void) G_GNUC_CONST;
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index 99c505b..f3cfc1f 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -459,6 +459,7 @@ account_assistant_chooser_enter_details_filter_func (
TpConnectionManager *cm,
TpConnectionManagerProtocol *protocol,
gboolean is_gtalk,
+ gboolean is_facebook,
gpointer user_data)
{
if (!tp_strdiff (protocol->name, "local-xmpp") ||
@@ -473,9 +474,10 @@ account_assistant_chooser_create_account_filter_func (
TpConnectionManager *cm,
TpConnectionManagerProtocol *protocol,
gboolean is_gtalk,
+ gboolean is_facebook,
gpointer user_data)
{
- if (is_gtalk)
+ if (is_gtalk || is_facebook)
return FALSE;
return tp_connection_manager_protocol_can_register (protocol);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]