From 39c72b8943cf88f0f9aec9eed406bc957af6a07d Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sun, 14 Dec 2003 15:54:39 +0000 Subject: only add the component to the list if we actually create it 2003-12-14 JP Rosevear * e-user-creatable-items-handler.c (get_components_from_registry): only add the component to the list if we actually create it Fixes #51707 svn path=/trunk/; revision=23936 --- shell/ChangeLog | 7 +++++++ shell/e-user-creatable-items-handler.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'shell') 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 + + * 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 * 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); } } -- cgit