aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-08-09 20:12:17 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-14 23:18:22 +0800
commitd2b704165e9bf015400b72e95d443a67ebc3060e (patch)
treea3345cded3e797f1748e2dc2eeef80bb0ec1a2bb
parent392042f185ccca47df3e7cfd545141de2d322879 (diff)
downloadgsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.tar
gsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.tar.gz
gsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.tar.bz2
gsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.tar.lz
gsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.tar.xz
gsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.tar.zst
gsoc2013-empathy-d2b704165e9bf015400b72e95d443a67ebc3060e.zip
accounts-plugin-widget: only use the simple account widget when creating account
https://bugzilla.gnome.org/show_bug.cgi?id=680775
-rw-r--r--ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c
index c1ba45f9a..fe3b6fe5e 100644
--- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c
+++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c
@@ -237,14 +237,18 @@ static void
add_account_widget (EmpathyAccountsPluginWidget *self)
{
GtkWidget *alig;
+ gboolean simple;
alig = gtk_alignment_new (0.5, 0, 0, 0);
gtk_box_pack_start (GTK_BOX (self), alig, TRUE, TRUE, 0);
gtk_widget_show (GTK_WIDGET (alig));
+ /* Use the simple widget only when creating the account */
+ simple = (self->priv->account->id == 0);
+
self->priv->account_widget = empathy_account_widget_new_for_protocol (
- self->priv->settings, TRUE);
+ self->priv->settings, simple);
empathy_account_widget_hide_buttons (self->priv->account_widget);