aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-settings-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-settings-dialog.c')
-rw-r--r--shell/e-shell-settings-dialog.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c
index 139344fbe1..d30fe5c6e8 100644
--- a/shell/e-shell-settings-dialog.c
+++ b/shell/e-shell-settings-dialog.c
@@ -27,6 +27,8 @@
#include "e-shell-settings-dialog.h"
+#include "e-corba-config-page.h"
+
#include <gal/util/e-util.h>
#include <bonobo/bonobo-widget.h>
@@ -99,13 +101,10 @@ load_pages (EShellSettingsDialog *dialog)
icon = gdk_pixbuf_new_from_file (icon_path);
corba_object = oaf_activate_from_id ((char *) info->iid, 0, NULL, &ev);
- if (ev._major == CORBA_NO_EXCEPTION) {
- GtkWidget *widget;
-
- widget = bonobo_widget_new_control_from_objref (corba_object, CORBA_OBJECT_NIL);
+ if (ev._major == CORBA_NO_EXCEPTION)
e_multi_config_dialog_add_page (E_MULTI_CONFIG_DIALOG (dialog),
- title, description, icon, widget);
- }
+ title, description, icon,
+ E_CONFIG_PAGE (e_corba_config_page_new_from_objref (corba_object)));
if (icon != NULL)
gdk_pixbuf_unref (icon);