/** Attempt to create the account from the information that the user has entered.
* @result: TRUE if the account was successfully created.
*/
-gboolean
+static gboolean
create_account (ModestEasysetupWizardDialog *self, gboolean enabled)
{
ModestEasysetupWizardDialogPrivate *priv = WIZARD_DIALOG_GET_PRIVATE (self);
* The paned position is incorrectly saved somehow before its even visible,
* when we show the main window only some time after creating it,
* so this prevents a wrong value from being used. */
- const gint max = (GTK_WIDGET(paned)->requisition.width)/3;
+ const gint max = (GTK_WIDGET(paned)->allocation.width)/3;
if (pos > max)
pos = max;
self = MODEST_ACCOUNT_VIEW (user_data);
priv = MODEST_ACCOUNT_VIEW_GET_PRIVATE (self);
- update_account_view (priv->account_mgr, self);
+ /* Do not refresh the view with transport accounts */
+ if (TNY_IS_STORE_ACCOUNT (account))
+ update_account_view (priv->account_mgr, self);
}
static void
"account_inserted",
G_CALLBACK(on_account_inserted), self);
- priv->acc_inserted_handler = g_signal_connect (G_OBJECT (modest_runtime_get_account_store ()),
+ priv->acc_changed_handler = g_signal_connect (G_OBJECT (modest_runtime_get_account_store ()),
"account_changed",
G_CALLBACK(on_account_changed), self);