aboutsummaryrefslogtreecommitdiffstats
path: root/mail/test-mail.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-05 02:59:04 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-05 02:59:04 +0800
commit9610908b0eb1943e3edb0e85e23f9cfdabd75871 (patch)
tree991c24ffc849843478a721b49ce8614ab1e2f725 /mail/test-mail.c
parent03a387dd445597caffa1383adceaa5d320ec6b30 (diff)
downloadgsoc2013-evolution-9610908b0eb1943e3edb0e85e23f9cfdabd75871.tar.gz
gsoc2013-evolution-9610908b0eb1943e3edb0e85e23f9cfdabd75871.tar.zst
gsoc2013-evolution-9610908b0eb1943e3edb0e85e23f9cfdabd75871.zip
sync for debugging with chris
svn path=/trunk/; revision=2044
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r--mail/test-mail.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/mail/test-mail.c b/mail/test-mail.c
index 1f8b217ce5..df9bd3dbcc 100644
--- a/mail/test-mail.c
+++ b/mail/test-mail.c
@@ -8,8 +8,9 @@
*/
#include <gnome.h>
#include <bonobo.h>
+#include <libgnorba/gnorba.h>
-static void
+static guint
create_container (void)
{
GtkWidget *window, *control;
@@ -20,8 +21,9 @@ create_container (void)
uih = bonobo_ui_handler_new ();
control = bonobo_widget_new_control ("GOADID:Evolution:FolderBrowser:1.0",
- bonobo_object_corba_objref (BONOBO_OBJECT (uih)));
+ bonobo_object_corba_objref (BONOBO_OBJECT (uih)));
+
if (control == NULL){
printf ("Could not launch mail control\n");
exit (1);
@@ -30,6 +32,9 @@ create_container (void)
gtk_widget_show (window);
gtk_widget_show (control);
+
+
+ return FALSE;
}
int
@@ -49,14 +54,14 @@ main (int argc, char *argv [])
if (bonobo_init (orb, NULL, NULL) == FALSE)
g_error ("Could not initialize Bonobo\n");
- bonobo_activate ();
- create_container ();
+
+ gtk_idle_add ((GtkFunction) create_container, NULL);
/*
* Main loop
*/
- gtk_main ();
+ bonobo_main ();
return 0;
}