aboutsummaryrefslogtreecommitdiffstats
path: root/mail/test-mail.c
diff options
context:
space:
mode:
authorMichael Meeks <michael@helixcode.com>2000-10-19 11:07:02 +0800
committerMichael Meeks <mmeeks@src.gnome.org>2000-10-19 11:07:02 +0800
commit94f3ed8e3ad1d6ee54ca5692a7a8afc51ec11672 (patch)
tree3c6050b9cf6e6acdeacec447bb5097818dbd3169 /mail/test-mail.c
parentfc142d01102d257de415fcaa350d3f58cf30783c (diff)
downloadgsoc2013-evolution-94f3ed8e3ad1d6ee54ca5692a7a8afc51ec11672.tar.gz
gsoc2013-evolution-94f3ed8e3ad1d6ee54ca5692a7a8afc51ec11672.tar.zst
gsoc2013-evolution-94f3ed8e3ad1d6ee54ca5692a7a8afc51ec11672.zip
kill. (create_ondemand_hooks): die. (control_activate): remove hook.
2000-10-18 Michael Meeks <michael@helixcode.com> * folder-browser-factory.c (register_ondemand): kill. (create_ondemand_hooks): die. (control_activate): remove hook. * test-mail.c (create_container): kill old UI handler. svn path=/trunk/; revision=6020
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");