* cspi/spi-private.h: Add declaration for _cspi_exceptoin_throw
* cspi/spi_accessible.c (cspi_init_relation_type_table): Add call
to return a value.
* cspi/spi_event.c: (AccessibleEvent_unref); Add casts to gfree
arguments.
* cspi/spi_main.c (SPI_Exception_getSourceType); Return the correct
type for unspecified exception.
* cspi_streamablecontect): Add include of string.h for memcpy.
(stream_release): Correct call to bonobo_object_release_unref
(stream_cache_item_free): Correct call to bonobo_object_release_unref
* cspi/bonobo/spi-bonobo.c: (cspi_check_event): Add cast to second
argument of _cspi_expection_throw.
* libspi/hyperlink.c: Add include of libspi/action.h:
(spi_hyperlink_new): Cast argument to spi_action_interface_new.
* libspi/streamablecontent.c: add include of libspi/component.h.
* regisrtyd/deviceeventcontroller.c:
(spi_dec_translate_mask): Removed unused variable priv.
(dec_synth_keysym): Initialize lock_mods to avoid compilker warning/
* registryd/registry.c:
(registry_filter_event): Remove unused variable queue_is-empty.
(impl_registry_notify_event): Use correct modifier in fprintf call.
This fixes compiler warnings reported in bug #120220.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@527
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2003-08-19 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * cspi/spi-private.h: Add declaration for _cspi_exceptoin_throw
+ * cspi/spi_accessible.c (cspi_init_relation_type_table): Add call
+ to return a value.
+ * cspi/spi_event.c: (AccessibleEvent_unref); Add casts to gfree
+ arguments.
+ * cspi/spi_main.c (SPI_Exception_getSourceType); Return the correct
+ type for unspecified exception.
+ * cspi_streamablecontect): Add include of string.h for memcpy.
+ (stream_release): Correct call to bonobo_object_release_unref
+ (stream_cache_item_free): Correct call to bonobo_object_release_unref
+ * cspi/bonobo/spi-bonobo.c: (cspi_check_event): Add cast to second
+ argument of _cspi_expection_throw.
+ * libspi/hyperlink.c: Add include of libspi/action.h:
+ (spi_hyperlink_new): Cast argument to spi_action_interface_new.
+ * libspi/streamablecontent.c: add include of libspi/component.h.
+ * regisrtyd/deviceeventcontroller.c:
+ (spi_dec_translate_mask): Removed unused variable priv.
+ (dec_synth_keysym): Initialize lock_mods to avoid compilker warning/
+ * registryd/registry.c:
+ (registry_filter_event): Remove unused variable queue_is-empty.
+ (impl_registry_notify_event): Use correct modifier in fprintf call.
+
+ This fixes compiler warnings reported in bug #120220.
+
2003-08-18 Padraig O'Briain <padraig.obriain@sun.com>
* registryd/registryd.c: Remove this file.
SPIBoolean cspi_accessible_is_a (Accessible *accessible,
const char *interface_name);
void cspi_streams_close_all (void);
+gboolean _cspi_exception_throw (CORBA_Environment *ev, char *desc_prefix);
+
#define cspi_return_if_fail(val) \
if (!(val)) \
relation_type_table [Accessibility_RELATION_EMBEDDED_BY] = SPI_RELATION_EMBEDDED_BY;
relation_type_table [Accessibility_RELATION_POPUP_FOR] = SPI_RELATION_POPUP_FOR;
relation_type_table [Accessibility_RELATION_LAST_DEFINED] = SPI_RELATION_LAST_DEFINED;
+ return TRUE;
}
static AccessibleRelationType
if (event->ref_count < 1)
{
cspi_internal_event_remove (event);
- g_free (e->type);
+ g_free ((gpointer)e->type);
Accessible_unref (e->source);
CORBA_free (event->data);
- g_free (e);
+ g_free ((gpointer)e);
}
}
}
if (err)
return err->type;
else
- return SPI_EXCEPTION_UNSPECIFIED;
+ return SPI_EXCEPTION_SOURCE_UNSPECIFIED;
}
/**
* Boston, MA 02111-1307, USA.
*/
+#include <string.h>
+#include <libbonobo.h>
#include <cspi/spi-private.h>
static void
stream_release (gpointer a)
{
- bonobo_object_release_unref (a);
+ CORBA_Environment ev;
+
+ bonobo_object_release_unref (a, &ev);
}
static void
stream_cache_item_free (gpointer a)
{
struct StreamCacheItem *cache_item = a;
+ CORBA_Environment ev;
if (cache_item) {
- bonobo_object_release_unref (cache_item->stream);
+ bonobo_object_release_unref (cache_item->stream, &ev);
SPI_freeString (cache_item->mimetype);
g_free (cache_item);
}