#include <modest-maemo-utils.h>
#include <modest-utils.h>
#include <dbus_api/modest-dbus-callbacks.h>
-#include <modest-osso-autosave-callbacks.h>
#include <libosso.h>
#include <tny-maemo-conic-device.h>
#include <tny-camel-folder.h>
static gboolean
check_required_files (void)
{
- FILE *mcc_file = modest_utils_open_mcc_mapping_file (FALSE, NULL);
+ FILE *mcc_file = modest_utils_open_mcc_mapping_file ();
+
if (!mcc_file) {
g_printerr ("modest: check for mcc file (for LANG) failed\n");
return FALSE;
- } else
- fclose (mcc_file);
-
- mcc_file = modest_utils_open_mcc_mapping_file (TRUE, NULL);
- if (!mcc_file) {
- g_printerr ("modest: check for mcc file (for LC_MESSAGES) failed\n");
- return FALSE;
- } else
+ } else {
fclose (mcc_file);
-
+ }
+
if (access(MODEST_PROVIDER_DATA_FILE, R_OK) != 0 &&
access(MODEST_FALLBACK_PROVIDER_DATA_FILE, R_OK) != 0) {
g_printerr ("modest: cannot find providers data\n");
return FALSE;
}
-
+
return TRUE;
}
hw_state.shutdown_ind = TRUE;
osso_hw_set_event_cb(osso_context, NULL, NULL, NULL);
- /* Register osso auto-save callbacks: */
- result = osso_application_set_autosave_cb (osso_context,
- modest_on_osso_application_autosave, NULL /* user_data */);
- if (result != OSSO_OK) {
- g_printerr ("modest: osso_application_set_autosave_cb() failed.\n");
- return FALSE;
- }
-
-
/* Make sure that the update interval is changed whenever its gconf key
* is changed */
/* CAUTION: we're not using here the
GTK_WINDOW (parent_window),
GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR |
GTK_DIALOG_DESTROY_WITH_PARENT,
- _HL("wdgt_bd_new"), MODEST_GTK_RESPONSE_NEW_FOLDER,
+ _FM ("ckdg_bd_change_folder_new_folder"),
+ MODEST_GTK_RESPONSE_NEW_FOLDER,
NULL);
align = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);