diff options
author | nobody <nobody@localhost> | 2000-02-26 07:33:55 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-02-26 07:33:55 +0800 |
commit | 8e588ed3d97e720c3439d30956e335b14713d4e3 (patch) | |
tree | e5dfae6704668d028cbb0e1fdc55e43b992004bc /mail/test-mail.c | |
parent | 59d2deddc74713097251e0b2c0eb48f078f78268 (diff) | |
download | gsoc2013-evolution-before_bonobo.tar gsoc2013-evolution-before_bonobo.tar.gz gsoc2013-evolution-before_bonobo.tar.bz2 gsoc2013-evolution-before_bonobo.tar.lz gsoc2013-evolution-before_bonobo.tar.xz gsoc2013-evolution-before_bonobo.tar.zst gsoc2013-evolution-before_bonobo.zip |
This commit was manufactured by cvs2svn to create tagbefore_bonobo
'before_bonobo'.
svn path=/tags/before_bonobo/; revision=1959
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r-- | mail/test-mail.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/mail/test-mail.c b/mail/test-mail.c deleted file mode 100644 index 1f8b217ce5..0000000000 --- a/mail/test-mail.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Tests the mail summary display bonobo component - * - * Author: - * Miguel de Icaza (miguel@kernel.org) - * - * (C) 2000 Helix Code, Inc. - */ -#include <gnome.h> -#include <bonobo.h> - -static void -create_container (void) -{ - GtkWidget *window, *control; - BonoboUIHandler *uih; - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_widget_show (window); - - uih = bonobo_ui_handler_new (); - control = bonobo_widget_new_control ("GOADID:Evolution:FolderBrowser:1.0", - bonobo_object_corba_objref (BONOBO_OBJECT (uih))); - - if (control == NULL){ - printf ("Could not launch mail control\n"); - exit (1); - } - gtk_container_add (GTK_CONTAINER (window), control); - - gtk_widget_show (window); - gtk_widget_show (control); -} - -int -main (int argc, char *argv []) -{ - CORBA_Environment ev; - CORBA_ORB orb; - - CORBA_exception_init (&ev); - - gnome_CORBA_init ("sample-control-container", "1.0", &argc, argv, 0, &ev); - - CORBA_exception_free (&ev); - - orb = gnome_CORBA_ORB (); - - if (bonobo_init (orb, NULL, NULL) == FALSE) - g_error ("Could not initialize Bonobo\n"); - - bonobo_activate (); - - create_container (); - - /* - * Main loop - */ - gtk_main (); - - return 0; -} |