diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-11 20:34:09 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-12 00:01:37 +0800 |
commit | d5c50301939772d752c7f8789a9b5ae81334fab3 (patch) | |
tree | 7070ff37419303cde3fdbd46e7201cef1d4fb624 /libempathy-gtk | |
parent | 0d6a5a8caef60613531a96f5f81b55c811200ec8 (diff) | |
download | gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.gz gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.bz2 gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.lz gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.xz gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.tar.zst gsoc2013-empathy-d5c50301939772d752c7f8789a9b5ae81334fab3.zip |
add is_facebook arg to empathy_protocol_chooser_dup_selected
So the assistant and accounts dialog can special case facebook accounts.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-protocol-chooser.c | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-protocol-chooser.h | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-protocol-chooser.c b/libempathy-gtk/empathy-protocol-chooser.c index e67faf860..65f70ee97 100644 --- a/libempathy-gtk/empathy-protocol-chooser.c +++ b/libempathy-gtk/empathy-protocol-chooser.c @@ -464,7 +464,8 @@ TpConnectionManager * empathy_protocol_chooser_dup_selected ( EmpathyProtocolChooser *protocol_chooser, TpConnectionManagerProtocol **protocol, - gboolean *is_gtalk) + gboolean *is_gtalk, + gboolean *is_facebook) { GtkTreeIter iter; TpConnectionManager *cm = NULL; @@ -503,6 +504,13 @@ empathy_protocol_chooser_dup_selected ( COL_IS_GTALK, is_gtalk, -1); } + + if (is_facebook != NULL) + { + gtk_tree_model_get (GTK_TREE_MODEL (cur_model), &iter, + COL_IS_FACEBOOK, is_facebook, + -1); + } } return cm; diff --git a/libempathy-gtk/empathy-protocol-chooser.h b/libempathy-gtk/empathy-protocol-chooser.h index 088d1b664..b4ffeb33c 100644 --- a/libempathy-gtk/empathy-protocol-chooser.h +++ b/libempathy-gtk/empathy-protocol-chooser.h @@ -68,7 +68,8 @@ GtkWidget * empathy_protocol_chooser_new (void); TpConnectionManager *empathy_protocol_chooser_dup_selected ( EmpathyProtocolChooser *protocol_chooser, TpConnectionManagerProtocol **protocol, - gboolean *is_gtalk); + gboolean *is_gtalk, + gboolean *is_facebook); void empathy_protocol_chooser_set_visible ( EmpathyProtocolChooser *protocol_chooser, |