From a272169e91bb07b251f3787f688f9cbf138a42c6 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Mon, 22 Oct 2007 15:02:50 +0000 Subject: [PATCH] Simplified the MailTo DBUS handler pmo-trunk-r3555 --- src/dbus_api/modest-dbus-callbacks.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/dbus_api/modest-dbus-callbacks.c b/src/dbus_api/modest-dbus-callbacks.c index 749a3ec..0c4110d 100644 --- a/src/dbus_api/modest-dbus-callbacks.c +++ b/src/dbus_api/modest-dbus-callbacks.c @@ -209,14 +209,9 @@ on_idle_mail_to(gpointer user_data) list = g_slist_next (list_value); } - ComposeMailIdleData *idle_data = g_new0(ComposeMailIdleData, 1); /* Freed in the idle callback. */ - - idle_data->to = g_strdup (to); - idle_data->cc = g_strdup (cc); - idle_data->bcc = g_strdup (bcc); - idle_data->subject = g_strdup (subject); - idle_data->body = g_strdup (body); - idle_data->attachments = NULL; + gdk_threads_enter (); /* CHECKED */ + modest_ui_actions_compose_msg(NULL, to, cc, bcc, subject, body, NULL); + gdk_threads_leave (); /* CHECKED */ /* Free the to: and the list, as required by uri_parse_mailto() */ g_free(to); @@ -225,8 +220,6 @@ on_idle_mail_to(gpointer user_data) g_free(uri); - on_idle_compose_mail((gpointer)idle_data); - return FALSE; /* Do not call this callback again. */ } -- 1.7.9.5