aboutsummaryrefslogtreecommitdiffstats
path: root/mail/test-mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r--mail/test-mail.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mail/test-mail.c b/mail/test-mail.c
index ecf8c5eda5..c62df3ac3e 100644
--- a/mail/test-mail.c
+++ b/mail/test-mail.c
@@ -17,21 +17,23 @@ static guint
create_container (void)
{
GtkWidget *window, *control;
- BonoboUIHandler *uih;
+ BonoboUIContainer *container;
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);
+ window = bonobo_win_new ("Test", "test");
gtk_widget_set_usize (GTK_WIDGET (window), 640, 480);
gtk_widget_show (GTK_WIDGET (window));
- uih = bonobo_ui_handler_new ();
+ container = bonobo_ui_container_new ();
+ bonobo_ui_container_set_win (BONOBO_WIN (window), container);
- control = bonobo_widget_new_control ("OAFIID:control:evolution-mail:833d5a71-a201-4a0e-b7e6-5475c5c4cb45",
- bonobo_object_corba_objref (BONOBO_OBJECT (uih)));
+ control = bonobo_widget_new_control (
+ "OAFIID:control:evolution-mail:833d5a71-a201-4a0e-b7e6-5475c5c4cb45",
+ bonobo_object_corba_objref (BONOBO_OBJECT (container)));
if (control == NULL){
printf ("Could not launch mail control\n");