diff options
author | nobody <nobody@localhost> | 1999-12-25 22:31:23 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 1999-12-25 22:31:23 +0800 |
commit | b67d1593082f17863d63fd948440d947d117f872 (patch) | |
tree | 7d0d3756e5b4657c67be691910240a559b06c3cc /composer/main.c | |
parent | 9c84a9253936ded67c4ab3d8fb9a8b357a533411 (diff) | |
download | gsoc2013-evolution-STABLE.tar gsoc2013-evolution-STABLE.tar.gz gsoc2013-evolution-STABLE.tar.bz2 gsoc2013-evolution-STABLE.tar.lz gsoc2013-evolution-STABLE.tar.xz gsoc2013-evolution-STABLE.tar.zst gsoc2013-evolution-STABLE.zip |
This commit was manufactured by cvs2svn to create tag 'STABLE'.STABLE
svn path=/tags/STABLE/; revision=1518
Diffstat (limited to 'composer/main.c')
-rw-r--r-- | composer/main.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/composer/main.c b/composer/main.c deleted file mode 100644 index 8fbf01b5e8..0000000000 --- a/composer/main.c +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ - -#include <gnome.h> - -#include <camel/camel-data-wrapper.h> -#include <camel/camel-stream-fs.h> -#include <camel/camel-stream.h> - -#include "e-msg-composer.h" - -static void -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 -} - -int -main (int argc, char **argv) -{ - GtkWidget *composer; - - gnome_init ("test", "0.0", argc, argv); - glade_gnome_init (); - - composer = e_msg_composer_new (); - gtk_widget_show (composer); - - gtk_signal_connect (GTK_OBJECT (composer), "send", - GTK_SIGNAL_FUNC (send_cb), NULL); - - gtk_main (); - - return 0; -} |