aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-user-creatable-items-handler.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 23d3b8eacd..d69c2a73d2 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-14 JP Rosevear <jpr@ximian.com>
+
+ * e-user-creatable-items-handler.c (get_components_from_registry):
+ only add the component to the list if we actually create it
+
+ Fixes #51707
+
2003-12-11 Not Zed <NotZed@Ximian.com>
* e-sidebar.c (do_layout): remove padding around the folder list.
diff --git a/shell/e-user-creatable-items-handler.c b/shell/e-user-creatable-items-handler.c
index f45bb5183d..d7e4454cf6 100644
--- a/shell/e-user-creatable-items-handler.c
+++ b/shell/e-user-creatable-items-handler.c
@@ -150,14 +150,15 @@ get_components_from_registry (EUserCreatableItemsHandler *handler,
for (p = registry_list; p != NULL; p = p->next) {
EComponentInfo *info = p->data;
- Component *component;
+ Component *component = NULL;
e_component_registry_activate (registry, info->id, NULL);
if (info->iface != CORBA_OBJECT_NIL)
component = component_new (info->id, info->iface);
- handler->priv->components = g_slist_prepend (handler->priv->components, component);
+ if (component)
+ handler->priv->components = g_slist_prepend (handler->priv->components, component);
}
}