aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-user-creatable-items-handler.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-03-07 07:33:35 +0800
committerDan Winship <danw@src.gnome.org>2002-03-07 07:33:35 +0800
commita3dfdc714c2d3b4663c1d7f2b07daf6e8a8940dc (patch)
tree8f53dd050288a3f5e814e4ac0de60cc30f9a3359 /shell/e-shell-user-creatable-items-handler.c
parent7324c70f4166344bf5dc071c3bc8bf3f76ded086 (diff)
downloadgsoc2013-evolution-a3dfdc714c2d3b4663c1d7f2b07daf6e8a8940dc.tar.gz
gsoc2013-evolution-a3dfdc714c2d3b4663c1d7f2b07daf6e8a8940dc.tar.zst
gsoc2013-evolution-a3dfdc714c2d3b4663c1d7f2b07daf6e8a8940dc.zip
Fix up GList/GSList confusion.
* e-corba-storage-registry.c (impl_StorageRegistry_removeListener): Fix up GList/GSList confusion. * e-shell-user-creatable-items-handler.c (get_default_action_for_view): Don't look into the types list if it's empty. svn path=/trunk/; revision=15954
Diffstat (limited to 'shell/e-shell-user-creatable-items-handler.c')
-rw-r--r--shell/e-shell-user-creatable-items-handler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/e-shell-user-creatable-items-handler.c b/shell/e-shell-user-creatable-items-handler.c
index 1aa57ebcef..738475a06e 100644
--- a/shell/e-shell-user-creatable-items-handler.c
+++ b/shell/e-shell-user-creatable-items-handler.c
@@ -289,6 +289,9 @@ get_default_action_for_view (EShellUserCreatableItemsHandler *handler,
const char *component_id;
component = (const Component *) p->data;
+ if (component->type_list->_length == 0)
+ continue;
+
type = & component->type_list->_buffer[0];
component_id = evolution_shell_component_client_get_id (component->component_client);