From 52051385f2d802b982fa7427f7277609332cccb6 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 5 May 2000 18:24:37 +0000 Subject: Use the OAFIID when using an OAF-enabled build of bonobo. 2000-05-05 Anders Carlsson * test-mail.c (create_container): Use the OAFIID when using an OAF-enabled build of bonobo. svn path=/trunk/; revision=2818 --- mail/ChangeLog | 5 +++++ mail/test-mail.c | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index f90123431c..88cb9d2404 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-05-05 Anders Carlsson + + * test-mail.c (create_container): Use the OAFIID when using an + OAF-enabled build of bonobo. + 2000-05-04 NotZed * message-list.c (message_list_set_folder): Get the whole message diff --git a/mail/test-mail.c b/mail/test-mail.c index 4d6707c711..f2a39bf104 100644 --- a/mail/test-mail.c +++ b/mail/test-mail.c @@ -57,9 +57,14 @@ create_container (void) gtk_widget_show (GTK_WIDGET (window)); uih = bonobo_ui_handler_new (); + +#ifdef USING_OAF + control = bonobo_widget_new_control ("OAFIID:control:evolution-mail:833d5a71-a201-4a0e-b7e6-5475c5c4cb45", + bonobo_object_corba_objref (BONOBO_OBJECT (uih))); +#else control = bonobo_widget_new_control ("control:evolution-mail", bonobo_object_corba_objref (BONOBO_OBJECT (uih))); - +#endif if (control == NULL){ printf ("Could not launch mail control\n"); @@ -91,3 +96,8 @@ main (int argc, char *argv []) return 0; } + + + + + -- cgit v1.2.3