not fully working yet.
pmo-trunk-r860
}
-
-
+/* hmmm... might need to make specific callback for specific keys */
static void
modest_conf_on_change (GConfClient *client, guint conn_id, GConfEntry *entry,
gpointer data)
#define MODEST_LOCAL_FOLDERS_ACCOUNT_ID "local_folders"
#define MODEST_LOCAL_FOLDERS_ACCOUNT_NAME MODEST_LOCAL_FOLDERS_ACCOUNT_ID
#define MODEST_LOCAL_FOLDERS_MAILDIR MODEST_LOCAL_FOLDERS_ACCOUNT_ID
-#define MODEST_LOCAL_FOLDERS_DISPLAY_NAME N_("Local folders")
/* configuration key definitions for modest */
#define MODEST_CONF_SHOW_BCC MODEST_CONF_NAMESPACE "/show_bcc"
+/*
+ * in the maemo case, we try to replace this
+ * with the device name
+ */
+#define MODEST_LOCAL_FOLDERS_DEFAULT_DISPLAY_NAME N_("Local folders")
+
+/* the name of the device; in case of maemo this is set and updated
+ * using dbus; see modest-maemo-utils.[ch]
+ */
+#define MODEST_CONF_DEVICE_NAME MODEST_CONF_NAMESPACE "/device_name"
+
+
/* place for widget settings */
#define MODEST_CONF_WIDGET_NAMESPACE MODEST_CONF_NAMESPACE "/widgets"
g_printerr ("modest: failed to init header columns\n");
return FALSE;
}
-
+
if (!init_local_folders()) {
modest_runtime_uninit ();
g_printerr ("modest: failed to init local folders\n");
url_string = camel_url_to_string (url, 0);
tny_account_set_url_string (TNY_ACCOUNT(tny_account), url_string);
- tny_account_set_name (TNY_ACCOUNT(tny_account), _(MODEST_LOCAL_FOLDERS_ACCOUNT_NAME));
+
+ tny_account_set_name (TNY_ACCOUNT(tny_account), MODEST_LOCAL_FOLDERS_DEFAULT_DISPLAY_NAME);
tny_account_set_id (TNY_ACCOUNT(tny_account), MODEST_LOCAL_FOLDERS_ACCOUNT_ID);
tny_account_set_forget_pass_func (TNY_ACCOUNT(tny_account), forget_pass_dummy);
tny_account_set_pass_func (TNY_ACCOUNT(tny_account), get_pass_dummy);
-
+
g_object_set_data (G_OBJECT(tny_account), "modest_account",
(gpointer*)MODEST_LOCAL_FOLDERS_ACCOUNT_ID);
if (!msg_preview)
return;
- /* mark message as seen; _set_flags crashes, bug in tinymail? */
header = TNY_HEADER (tny_iterator_get_current (helper->iter));
header_flags = tny_header_get_flags (header);
tny_header_set_flags (header, header_flags | TNY_HEADER_FLAG_SEEN);