aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-14 23:54:39 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-14 23:54:39 +0800
commit39c72b8943cf88f0f9aec9eed406bc957af6a07d (patch)
tree494900f93fbb987e32c542403084f01849d4f752
parentb09a2745bcc0206f2304223abb700da2a1cf65da (diff)
downloadgsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.tar
gsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.tar.gz
gsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.tar.bz2
gsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.tar.lz
gsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.tar.xz
gsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.tar.zst
gsoc2013-evolution-39c72b8943cf88f0f9aec9eed406bc957af6a07d.zip
only add the component to the list if we actually create it
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 svn path=/trunk/; revision=23936
-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);
}
}