From 901c4571addc9715ba94de42a4ebcff682387a15 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 26 Mar 2002 20:32:33 +0000 Subject: g_warning if the control cannot be activated. * e-shell-settings-dialog.c (load_pages): g_warning if the control cannot be activated. svn path=/trunk/; revision=16254 --- shell/e-shell-settings-dialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-settings-dialog.c') diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c index 33a4613c91..76cf594ea4 100644 --- a/shell/e-shell-settings-dialog.c +++ b/shell/e-shell-settings-dialog.c @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -91,10 +92,13 @@ load_pages (EShellSettingsDialog *dialog) } corba_object = oaf_activate_from_id ((char *) info->iid, 0, NULL, &ev); - if (ev._major == CORBA_NO_EXCEPTION) + if (! BONOBO_EX (&ev)) { e_multi_config_dialog_add_page (E_MULTI_CONFIG_DIALOG (dialog), title, description, icon, E_CONFIG_PAGE (e_corba_config_page_new_from_objref (corba_object))); + } else { + g_warning ("Cannot activate %s -- %s", info->iid, BONOBO_EX_ID (&ev)); + } if (icon != NULL) gdk_pixbuf_unref (icon); -- cgit v1.2.3