/* Play sound if the user wants. Show the LED
pattern. Show and play just one */
if (G_UNLIKELY (first_notification)) {
+ TnyAccount *account;
first_notification = FALSE;
"dialog-type", 4);
notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
"led-pattern",
- MODEST_NEW_MAIL_LIGHTING_PATTERN);
+ MODEST_NEW_MAIL_LIGHTING_PATTERN);
+
+ /* Set the account of the headers */
+ account = tny_folder_get_account (folder);
+ if (account) {
+ notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
+ "email-account",
+ tny_account_get_id (account));
+ g_object_unref (account);
+ }
}
/* Notify. We need to do this in an idle because this function
g_signal_stop_emission_by_name (dialog, "response");
msg = g_strdup_printf (_("mcen_ni_view_unknown_certificate"), cert);
- note = hildon_note_new_information (GTK_WINDOW(dialog), msg);
+ note = hildon_note_new_information (NULL, msg);
gtk_dialog_run (GTK_DIALOG(note));
gtk_widget_destroy (note);
}
account = TNY_ACCOUNT (folder_store);
if (modest_tny_account_is_virtual_local_folders (account)) {
+ gchar *device_name;
account_id = tny_account_get_id (account);
- selection_label_text = g_strconcat (tny_account_get_name (account), "/", NULL);
+ device_name = modest_conf_get_string (modest_runtime_get_conf(),
+ MODEST_CONF_DEVICE_NAME, NULL);
+ if (device_name) {
+ selection_label_text = g_strconcat (device_name, "/", NULL);
+ g_free (device_name);
+ } else {
+ selection_label_text = g_strconcat (tny_account_get_name (account), "/", NULL);
+ }
} else if (modest_tny_account_is_memory_card_account (account)) {
account_id = tny_account_get_id (account);
selection_label_text = g_strconcat (tny_account_get_name (account), "/", NULL);