aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-11 23:47:53 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-12 00:01:38 +0800
commit6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f (patch)
tree5db94e396fb4c29ee6975cf027e6e78ba5801f6b /libempathy-gtk/empathy-account-widget.c
parent9be6f0a2e28b9719bceafbd95ed49d27363b33c0 (diff)
downloadgsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.tar
gsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.tar.gz
gsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.tar.bz2
gsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.tar.lz
gsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.tar.xz
gsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.tar.zst
gsoc2013-empathy-6d2a11ac6fa575de2a4ed9e5f9fe239c2063e07f.zip
add a simple version of the Facebook widget
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 0469f6205..4124388d8 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1069,7 +1069,22 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
self->ui_details->default_focus = g_strdup ("entry_id_g_simple");
}
- /* TODO: Simple widget for Facebook */
+ else if (priv->simple && is_facebook)
+ {
+ /* Simple widget for Facebook */
+ self->ui_details->gui = empathy_builder_get_file (filename,
+ "vbox_fb_simple", &self->ui_details->widget,
+ "entry_id_fb_simple", &entry_id,
+ NULL);
+
+ empathy_account_widget_handle_params (self,
+ "entry_password_fb_simple", "password",
+ NULL);
+
+ setup_facebook_id_widget (self, entry_id);
+
+ self->ui_details->default_focus = g_strdup ("entry_id_fb_simple");
+ }
else
{
/* Full widget for XMPP, Google Talk and Facebook*/