2003-08-19 Padraig O'Briain <padraig.obriain@sun.com>
authorpadraigo <padraigo@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 19 Aug 2003 12:58:03 +0000 (12:58 +0000)
committerpadraigo <padraigo@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 19 Aug 2003 12:58:03 +0000 (12:58 +0000)
* 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

ChangeLog
cspi/spi-private.h
cspi/spi_accessible.c
cspi/spi_event.c
cspi/spi_main.c
cspi/spi_streamablecontent.c

index 80e08c5..cdc0278 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,29 @@
+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.
index eeb933f..bbff0c1 100644 (file)
@@ -80,6 +80,8 @@ void                   cspi_object_return     (Accessible  *accessible);
 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))                             \
index 4e34f06..7bd4a85 100644 (file)
@@ -989,6 +989,7 @@ cspi_init_relation_type_table (AccessibleRelationType *relation_type_table)
   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
index ab66124..695f1a2 100644 (file)
@@ -706,10 +706,10 @@ AccessibleEvent_unref (const AccessibleEvent *e)
          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);
             }
        }
     }
index e32a5d0..f54b60a 100644 (file)
@@ -569,7 +569,7 @@ SPIExceptionType SPIException_getSourceType (SPIException *err)
   if (err)
     return err->type;
   else
-    return SPI_EXCEPTION_UNSPECIFIED;
+    return SPI_EXCEPTION_SOURCE_UNSPECIFIED;
 }
 
 /**
index 6147960..500b339 100644 (file)
@@ -21,6 +21,8 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#include <string.h>
+#include <libbonobo.h>
 #include <cspi/spi-private.h>
 
 
@@ -41,15 +43,18 @@ streams_equal_func (gconstpointer a, gconstpointer b)
 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);
   }