diff options
author | bertrand <bg@aful.org> | 2000-03-21 16:54:06 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-03-21 16:54:06 +0800 |
commit | 975b6ef8bcaa27300db012f2569562a9f4dc11b3 (patch) | |
tree | 310cc69422982dba0607005d30b80795f8a8ce85 /mail/folder-browser-factory.c | |
parent | a726033ce0a2fdedeb8dde1fce07d3f3d6ee7726 (diff) | |
download | gsoc2013-evolution-975b6ef8bcaa27300db012f2569562a9f4dc11b3.tar.gz gsoc2013-evolution-975b6ef8bcaa27300db012f2569562a9f4dc11b3.tar.zst gsoc2013-evolution-975b6ef8bcaa27300db012f2569562a9f4dc11b3.zip |
Temporarily removed the calendar from the subdirs list. The compilation
03-21-2000 bertrand <bg@aful.org>
Temporarily removed the calendar from the subdirs list.
The compilation errors confuse people.
svn path=/trunk/; revision=2129
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r-- | mail/folder-browser-factory.c | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 17b0f16325..f2397ef15b 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -19,6 +19,7 @@ #include "main.h" #include "shell/Evolution.h" #include "shell/evolution-service-repository.h" +#include "composer/e-msg-composer.h" static const gchar *warning_dialog_buttons[] = { @@ -99,6 +100,41 @@ development_warning () } +static void +msg_composer_send_cb (EMsgComposer *composer, + gpointer data) +{ + CamelMimeMessage *message; + CamelStream *stream; + gint stdout_dup; + + message = e_msg_composer_get_message (composer); + + stdout_dup = dup (1); + stream = camel_stream_fs_new_with_fd (stdout_dup); + camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), + stream); + camel_stream_close (stream); + + gtk_object_unref (GTK_OBJECT (message)); + +#if 0 + gtk_widget_destroy (GTK_WIDGET (composer)); + gtk_main_quit (); +#endif +} + + +static void +msg_composer_cb (GtkObject *obj, gpointer user_data) +{ + CamelMimeMessage *msg; + GtkWidget *composer; + + composer = e_msg_composer_new (); + gtk_signal_connect (GTK_OBJECT (composer), "send", GTK_SIGNAL_FUNC (msg_composer_send_cb), NULL); + gtk_widget_show (composer); +} static void @@ -114,9 +150,9 @@ control_add_menu (BonoboControl *control) bonobo_ui_handler_set_container (uih, remote_uih); bonobo_ui_handler_menu_new_item (uih, - "/File/Stuff", N_("_Stuff"), NULL, -1, + "/File/New", N_("_Mail"), NULL, -1, BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, - NULL, NULL); + msg_composer_cb, NULL); } |