aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/test-mail.c12
2 files changed, 16 insertions, 1 deletions
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 <andersca@gnu.org>
+
+ * test-mail.c (create_container): Use the OAFIID when using an
+ OAF-enabled build of bonobo.
+
2000-05-04 NotZed <NotZed@HelixCode.com>
* 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;
}
+
+
+
+
+