]> git.0d.be Git - empathy.git/commitdiff
accounts-plugin-widget: only use the simple account widget when creating account
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 9 Aug 2012 12:12:17 +0000 (14:12 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Tue, 14 Aug 2012 15:18:22 +0000 (17:18 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=680775

ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c

index c1ba45f9ad09baf74177a2a49ed4171ef2a9a7a8..fe3b6fe5e5eff53e9e2655eee9a0192e37cdeeb5 100644 (file)
@@ -237,14 +237,18 @@ static void
 add_account_widget (EmpathyAccountsPluginWidget *self)
 {
   GtkWidget *alig;
 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));
 
 
   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->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);
 
 
   empathy_account_widget_hide_buttons (self->priv->account_widget);