+#ifdef MODEST_TOOLKIT_HILDON2
+ const gchar *active_account;
+ TnyAccount *account;
+
+ /* In hildon 2.2 we use the current account as default parent */
+ active_account = modest_window_get_active_account (MODEST_WINDOW (parent_window));
+ account = modest_tny_account_store_get_server_account (modest_runtime_get_account_store (),
+ active_account,
+ TNY_ACCOUNT_TYPE_STORE);
+ parent_folder = TNY_FOLDER_STORE (account);
+#else