diff options
author | nobody <nobody@localhost> | 2000-08-22 20:05:30 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-08-22 20:05:30 +0800 |
commit | 2e129e04c509cffde9e3072bbd94cc1640b05d23 (patch) | |
tree | 3b4824784cd30983db4a6ae1f38db287d5815941 /mail/test-mail.c | |
parent | 44ae37c371e25fe05e8aee145f1d9af7130a201d (diff) | |
download | gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.tar gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.tar.gz gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.tar.bz2 gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.tar.lz gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.tar.xz gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.tar.zst gsoc2013-evolution-2e129e04c509cffde9e3072bbd94cc1640b05d23.zip |
This commit was manufactured by cvs2svn to create taggnomemm-1_1_11
'gnomemm-1_1_11'.
svn path=/tags/gnomemm-1_1_11/; revision=4958
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r-- | mail/test-mail.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/mail/test-mail.c b/mail/test-mail.c deleted file mode 100644 index ecf8c5eda5..0000000000 --- a/mail/test-mail.c +++ /dev/null @@ -1,71 +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; - BonoboUIHandler *uih; - - gdk_rgb_init (); - - gtk_widget_set_default_colormap (gdk_rgb_get_cmap ()); - gtk_widget_set_default_visual (gdk_rgb_get_visual ()); - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_widget_set_usize (GTK_WIDGET (window), 640, 480); - gtk_widget_show (GTK_WIDGET (window)); - - uih = bonobo_ui_handler_new (); - - control = bonobo_widget_new_control ("OAFIID:control:evolution-mail:833d5a71-a201-4a0e-b7e6-5475c5c4cb45", - 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); - - - 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; -} - - - - - |