on every time we close modest.
Fix 2/3 of NB#139348
/* Take screenshot. We have to wait a bit to ensure that
screenshot is properly taken */
- hildon_gtk_window_take_screenshot (GTK_WINDOW (widget), FALSE);
hildon_gtk_window_take_screenshot (GTK_WINDOW (widget), TRUE);
g_usleep (G_USEC_PER_SEC);
}
modest_account_mgr_add_account_from_settings (priv->account_manager, priv->settings);
+ hildon_gtk_window_take_screenshot ((GtkWindow *) dialog, FALSE);
}
{
ModestEasysetupWizardDialog *self = MODEST_EASYSETUP_WIZARD_DIALOG (dialog);
ModestEasysetupWizardDialogPrivate *priv = MODEST_EASYSETUP_WIZARD_DIALOG_GET_PRIVATE (self);
+ gboolean result;
save_to_settings (self);
return FALSE;
}
- return modest_account_mgr_add_account_from_settings (priv->account_manager, priv->settings);
+
+ result = modest_account_mgr_add_account_from_settings (priv->account_manager, priv->settings);
+ if (result) {
+ hildon_gtk_window_take_screenshot ((GtkWindow *) dialog, FALSE);
+ }
+ return result;
}
removed = modest_account_mgr_remove_account (account_mgr, account_name);
if (removed) {
+#ifdef MODEST_TOOLKIT_HILDON2
+ hildon_gtk_window_take_screenshot (parent_window, FALSE);
+#endif
/* Close all email notifications, we cannot
distinguish if the notification belongs to
this account or not, so for safety reasons