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
This commit is contained in:
@ -1,3 +1,13 @@
|
||||
2002-03-06 Dan Winship <danw@ximian.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2002-03-06 Ettore Perazzoli <ettore@ximian.com>
|
||||
|
||||
* e-shell-about-box.c: Reduce width of the copyright message so it
|
||||
|
||||
@ -277,7 +277,7 @@ impl_StorageRegistry_removeListener (PortableServer_Servant servant,
|
||||
ECorbaStorageRegistry *storage_registry;
|
||||
ECorbaStorageRegistryPrivate *priv;
|
||||
CORBA_Environment ev2;
|
||||
GList *p;
|
||||
GSList *p;
|
||||
|
||||
bonobo_object = bonobo_object_from_servant (servant);
|
||||
storage_registry = E_CORBA_STORAGE_REGISTRY (bonobo_object);
|
||||
@ -296,7 +296,7 @@ impl_StorageRegistry_removeListener (PortableServer_Servant servant,
|
||||
CORBA_exception_free (&ev2);
|
||||
|
||||
priv->listeners = g_slist_remove_link (priv->listeners, p);
|
||||
g_list_free (p);
|
||||
g_slist_free (p);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user