projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1441445
)
Simplified the MailTo DBUS handler
author
Alberto Garcia
<agarcia@igalia.com>
Mon, 22 Oct 2007 15:02:50 +0000
(15:02 +0000)
committer
Alberto Garcia
<agarcia@igalia.com>
Mon, 22 Oct 2007 15:02:50 +0000
(15:02 +0000)
pmo-trunk-r3555
src/dbus_api/modest-dbus-callbacks.c
patch
|
blob
|
history
diff --git
a/src/dbus_api/modest-dbus-callbacks.c
b/src/dbus_api/modest-dbus-callbacks.c
index
749a3ec
..
0c4110d
100644
(file)
--- 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);
}
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);
/* 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);
g_free(uri);
- on_idle_compose_mail((gpointer)idle_data);
-
return FALSE; /* Do not call this callback again. */
}
return FALSE; /* Do not call this callback again. */
}