X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fdbus_api%2Fmodest-dbus-callbacks.c;h=0c4110d1225c9f4614471b2bc63a7dc75df7ab02;hp=749a3ecdee64c6c321f3b6fca0bfbce2876e87de;hb=a272169e91bb07b251f3787f688f9cbf138a42c6;hpb=144144517f2d7ee5e19a7fe16bf48a9448a5cff6 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. */ }