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

cspi/bonobo/cspi-bonobo.c
libspi/hyperlink.c
libspi/streamablecontent.c
registryd/deviceeventcontroller.c
registryd/registry.c

index df59028..cf18e25 100644 (file)
@@ -49,7 +49,7 @@ cspi_check_ev (const char *error_string)
 
       err = bonobo_exception_get_text (ev);
 
-      if (!_cspi_exception_throw (ev, error_string)) {
+      if (!_cspi_exception_throw (ev, (char *) error_string)) {
        fprintf (stderr, "Warning: AT-SPI error: %s: %s\n",
                 error_string, err);
       }
index ef41984..7afc19d 100644 (file)
@@ -26,6 +26,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <libspi/hyperlink.h>
+#include <libspi/action.h>
 #include <libspi/accessible.h>
 
 /* Static function declarations */
@@ -98,7 +99,7 @@ spi_hyperlink_new (AtkHyperlink *object)
   if (ATK_IS_ACTION (object))
     {
       bonobo_object_add_interface (bonobo_object (new_hyperlink),
-                                  BONOBO_OBJECT (spi_action_interface_new (object)));
+                                  BONOBO_OBJECT (spi_action_interface_new (ATK_OBJECT (object))));
     }
   return new_hyperlink;
 }
index 1c7f4e5..df66141 100644 (file)
@@ -26,6 +26,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <libspi/accessible.h>
+#include <libspi/component.h>
 #include <libspi/streamablecontent.h>
 
 /* Our parent Gtk object type */
index 1e44fc7..07fd059 100644 (file)
@@ -568,8 +568,6 @@ spi_dec_init_mouse_listener (SpiRegistry *registry)
 static Accessibility_ControllerEventMask
 spi_dec_translate_mask (Accessibility_ControllerEventMask mask)
 {
-  DEControllerPrivateData *priv;
-
   if (mask == SPI_KEYMASK_NUMLOCK) {
     mask = _numlock_physical_mask;
   }
@@ -2003,6 +2001,7 @@ dec_synth_keysym (SpiDEController *controller, KeySym keysym)
        modifiers = dec_get_modifier_state (controller);
        /* side-effect; we may unset mousebutton modifiers here! */
 
+       lock_mods = 0;
        if (synth_mods != modifiers) {
                lock_mods = synth_mods & ~modifiers;
                dec_lock_modifiers (controller, lock_mods);
index b489bbd..70bb7f5 100644 (file)
@@ -773,7 +773,6 @@ static gboolean
 registry_filter_event (SpiRegistry *registry, NotifyContext *ctx,
                       CORBA_Environment *ev)
 {
-  gboolean queue_is_empty = FALSE;
   g_assert (ctx != NULL);
 
   /* case #1 is not yet used */
@@ -823,7 +822,7 @@ impl_registry_notify_event (PortableServer_Servant     servant,
     if (ctx.etype.type_cat != ETYPE_MOUSE)
 {
       fprintf (stderr, "emit! %s level: %d\n", ctx.etype.event_name, level);
-      fprintf (stderr, "emit! %p %p\n", ctx.e_out, ctx.e_out.type);
+      fprintf (stderr, "emit! %p %x\n", ctx.e_out, ctx.e_out.type);
 }
 #endif    
     registry_emit_event (registry, &ctx);