From a8a50b5085616775e176fd8836a94e81526059c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 5 Aug 2002 18:33:04 +0000 Subject: Updated to call post_to_url if the id is "post". 2002-08-05 Jeffrey Stedfast * component-factory.c (user_create_new_item_cb): Updated to call post_to_url if the id is "post". * mail-callbacks.c (post_to_url): New function so that we don't need a FolderBrowser to post a new message. (post_message): Call post_to_url since they shared so much code. svn path=/trunk/; revision=17698 --- mail/component-factory.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index e291c40bae..5a2651b789 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -825,8 +825,11 @@ user_create_new_item_cb (EvolutionShellComponent *shell_component, if (!strcmp (id, "message")) { send_to_url (NULL); return; - } - + } else if (!strcmp (id, "post")) { + post_to_url (parent_folder_physical_uri); + return; + } + g_warning ("Don't know how to create item of type \"%s\"", id); } -- cgit v1.2.3