diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-06 02:33:04 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-06 02:33:04 +0800 |
commit | a8a50b5085616775e176fd8836a94e81526059c8 (patch) | |
tree | 966439f3e8a7f063c03e419cb04f8af0fbf1b590 /mail/mail-callbacks.c | |
parent | ffab9cc57fc148272da233de949b8bb726531d77 (diff) | |
download | gsoc2013-evolution-a8a50b5085616775e176fd8836a94e81526059c8.tar.gz gsoc2013-evolution-a8a50b5085616775e176fd8836a94e81526059c8.tar.zst gsoc2013-evolution-a8a50b5085616775e176fd8836a94e81526059c8.zip |
Updated to call post_to_url if the id is "post".
2002-08-05 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 49bc245759..53a043c33f 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1373,22 +1373,15 @@ forward (GtkWidget *widget, gpointer user_data) void -post_message (GtkWidget *widget, gpointer user_data) +post_to_url (const char *url) { - FolderBrowser *fb = FOLDER_BROWSER (user_data); GtkWidget *composer; - char *url; - - if (FOLDER_BROWSER_IS_DESTROYED (fb) || !check_send_configuration (fb)) - return; composer = create_msg_composer (NULL, TRUE, NULL); if (!composer) return; - url = mail_tools_folder_to_url (fb->folder); e_msg_composer_hdrs_set_post_to ((EMsgComposerHdrs *) ((EMsgComposer *) composer)->hdrs, url); - g_free (url); gtk_signal_connect (GTK_OBJECT (composer), "send", GTK_SIGNAL_FUNC (composer_send_cb), NULL); @@ -1399,6 +1392,21 @@ post_message (GtkWidget *widget, gpointer user_data) } void +post_message (GtkWidget *widget, gpointer user_data) +{ + FolderBrowser *fb = FOLDER_BROWSER (user_data); + GtkWidget *composer; + char *url; + + if (FOLDER_BROWSER_IS_DESTROYED (fb) || !check_send_configuration (fb)) + return; + + url = mail_tools_folder_to_url (fb->folder); + post_to_url (url); + g_free (url); +} + +void post_reply (GtkWidget *widget, gpointer user_data) { FolderBrowser *fb = FOLDER_BROWSER (user_data); |