diff options
author | nobody <nobody@localhost> | 2001-02-22 03:34:27 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2001-02-22 03:34:27 +0800 |
commit | 19d71e1c5029e8c4048d9b8ace72affc28f2d04f (patch) | |
tree | f1ea97702781d0b26bb97bd28213ed46368377b6 /mail/test-mail.c | |
parent | 535fea211a9a35f5b04017124a71764daf926723 (diff) | |
download | gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.tar gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.tar.gz gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.tar.bz2 gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.tar.lz gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.tar.xz gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.tar.zst gsoc2013-evolution-19d71e1c5029e8c4048d9b8ace72affc28f2d04f.zip |
This commit was manufactured by cvs2svn to create tagGNUMERIC_0_63
'GNUMERIC_0_63'.
svn path=/tags/GNUMERIC_0_63/; revision=8333
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r-- | mail/test-mail.c | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/mail/test-mail.c b/mail/test-mail.c deleted file mode 100644 index 6e240199cd..0000000000 --- a/mail/test-mail.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Tests the mail summary display bonobo component - * - * Author: - * Miguel de Icaza (miguel@kernel.org) - * - * (C) 2000 Helix Code, Inc. - */ - -#include <config.h> - -#include <gnome.h> -#include <bonobo.h> -#include <liboaf/liboaf.h> - -static guint -create_container (void) -{ - GtkWidget *window, *control; - BonoboUIContainer *container; - - gdk_rgb_init (); - - gtk_widget_set_default_colormap (gdk_rgb_get_cmap ()); - gtk_widget_set_default_visual (gdk_rgb_get_visual ()); - - window = bonobo_window_new ("Test", "test"); - gtk_widget_set_usize (GTK_WIDGET (window), 640, 480); - gtk_widget_show (GTK_WIDGET (window)); - - container = bonobo_ui_container_new (); - bonobo_ui_container_set_win (container, BONOBO_WINDOW (window)); - - control = bonobo_widget_new_control ( - "OAFIID:GNOME_Evolution_Mail_Control", - bonobo_object_corba_objref (BONOBO_OBJECT (container))); - - 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); - - - return FALSE; -} - -int -main (int argc, char *argv []) -{ - gnome_init ("sample-control-container", "1.0", argc, argv); - oaf_init (argc, argv); - - if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) - g_error ("Could not initialize Bonobo\n"); - - gtk_idle_add ((GtkFunction) create_container, NULL); - - /* - * Main loop - */ - bonobo_main (); - - return 0; -} - - - - - |