From a70ed5cf833b20fb1c2e8cfd67223b6bc4234c18 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 23 May 2002 21:34:23 +0000 Subject: Set the ui to be the evolution-mail-global.xml file thingy. Still broken 2002-05-23 Jeffrey Stedfast * folder-browser-window.c (folder_browser_window_new): Set the ui to be the evolution-mail-global.xml file thingy. Still broken but oh well. I give up. bonobo-ui sucks. * message-browser.c (set_bonobo_ui): Fixed to not crash. svn path=/trunk/; revision=16994 --- mail/message-browser.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mail/message-browser.c') diff --git a/mail/message-browser.c b/mail/message-browser.c index ae318f1869..01e6fc1d1c 100644 --- a/mail/message-browser.c +++ b/mail/message-browser.c @@ -279,10 +279,11 @@ set_bonobo_ui (GtkWidget *widget, FolderBrowser *fb) /* We just opened the message! We don't need to open it again. */ CORBA_exception_init (&ev); + /* remove the broken menus and toolbar items */ bonobo_ui_component_rm (uic, "/menu/File/FileOps/MessageOpen", &ev); - if (BONOBO_EX (&ev)) - g_warning ("Couldn't remove message open item. Weird. Error: %s", - bonobo_exception_get_text (&ev)); + bonobo_ui_component_rm (uic, "/menu/Actions/ComponentActionsPlaceholder/MailMessageActions/GoTo", &ev); + bonobo_ui_component_rm (uic, "/menu/Tools", &ev); + bonobo_ui_component_rm (uic, "/Toolbar/MailNextButtons", &ev); CORBA_exception_free (&ev); /* Hack around the move/copy commands api's */ -- cgit v1.2.3