aboutsummaryrefslogtreecommitdiffstats
path: root/mail/test-mail.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2000-05-06 02:24:37 +0800
committerAnders Carlsson <andersca@src.gnome.org>2000-05-06 02:24:37 +0800
commit52051385f2d802b982fa7427f7277609332cccb6 (patch)
tree55fb2dd582156062547be9e89a850fe22137ffa2 /mail/test-mail.c
parentfa930495340a95608acc32a0b609133550245b90 (diff)
downloadgsoc2013-evolution-52051385f2d802b982fa7427f7277609332cccb6.tar.gz
gsoc2013-evolution-52051385f2d802b982fa7427f7277609332cccb6.tar.zst
gsoc2013-evolution-52051385f2d802b982fa7427f7277609332cccb6.zip
Use the OAFIID when using an OAF-enabled build of bonobo.
2000-05-05 Anders Carlsson <andersca@gnu.org> * test-mail.c (create_container): Use the OAFIID when using an OAF-enabled build of bonobo. svn path=/trunk/; revision=2818
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r--mail/test-mail.c12
1 files changed, 11 insertions, 1 deletions
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;
}
+
+
+
+
+