diff options
author | nobody <nobody@localhost> | 2000-05-22 06:40:15 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-05-22 06:40:15 +0800 |
commit | de2d358926885856d43a5f53aecb3739a9b5f3c8 (patch) | |
tree | 70ea22d6a4da2e07bedfe85a5cddc5e7ad0a1246 /composer/main.c | |
parent | 3f5d9cb60827ca2a5e032e95aa241cc8376ab46f (diff) | |
download | gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.tar gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.tar.gz gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.tar.bz2 gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.tar.lz gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.tar.xz gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.tar.zst gsoc2013-evolution-de2d358926885856d43a5f53aecb3739a9b5f3c8.zip |
This commit was manufactured by cvs2svn to create tag 'gnomoku-0_3'.gnomoku-0_3
svn path=/tags/gnomoku-0_3/; revision=3161
Diffstat (limited to 'composer/main.c')
-rw-r--r-- | composer/main.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/composer/main.c b/composer/main.c deleted file mode 100644 index 9a29e95666..0000000000 --- a/composer/main.c +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ - -#include <gnome.h> -#include <libgnorba/gnorba.h> -#include <bonobo.h> - -#include <glade/glade.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 -} - -static guint -create_composer (void) -{ - GtkWidget *composer; - - composer = e_msg_composer_new (); - gtk_widget_show (composer); - - gtk_signal_connect (GTK_OBJECT (composer), "send", GTK_SIGNAL_FUNC (send_cb), NULL); - - return FALSE; -} - -int -main (int argc, char **argv) -{ - CORBA_Environment ev; - CORBA_ORB orb; - - CORBA_exception_init (&ev); - gnome_CORBA_init ("evolution-test-msg-composer", "0.0", &argc, argv, 0, &ev); - CORBA_exception_free (&ev); - - orb = gnome_CORBA_ORB (); - - glade_gnome_init (); - - if (bonobo_init (orb, NULL, NULL) == FALSE) - g_error ("Could not initialize Bonobo\n"); - - /* We can't make any CORBA calls unless we're in the main loop. So we - delay creating the container here. */ - gtk_idle_add ((GtkFunction) create_composer, NULL); - - bonobo_main (); - - return 0; -} |