* atk-bridge/bridge.c: (spi_atk_bridge_signal_listener):
* cspi/spi_streamablecontent.c: (AccessibleStreamableContent_seek):
* registryd/deviceeventcontroller.c:
(spi_controller_notify_mouselisteners),
(impl_generate_keyboard_event):
* test/screen-review-test.c: (chunk_bounds_within):
* test/test-simple.c: (test_desktop): Remove lots of unused code
and fix compiler warnings. Closes bug #320049.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@770
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2005-11-02 Kjartan Maraas <kmaraas@gnome.org>
+
+ * atk-bridge/bridge.c: (spi_atk_bridge_signal_listener):
+ * cspi/spi_streamablecontent.c: (AccessibleStreamableContent_seek):
+ * registryd/deviceeventcontroller.c:
+ (spi_controller_notify_mouselisteners),
+ (impl_generate_keyboard_event):
+ * test/screen-review-test.c: (chunk_bounds_within):
+ * test/test-simple.c: (test_desktop): Remove lots of unused code
+ and fix compiler warnings. Closes bug #320049.
+
2005-10-27 Bill Haneman <bill.haneman@sun.com>
* registryd/deviceeventcontroller.c:
CORBA_Object c_obj;
char *sp = NULL;
AtkObject *ao;
- AtkText *text;
gint detail1 = 0, detail2 = 0;
SpiAccessible *s_ao = NULL;
#ifdef SPI_BRIDGE_DEBUG
}
else if (signal_query.signal_id == atk_signal_text_selection_changed)
{
- text = ATK_TEXT (gobject);
-
/* Return NULL as the selected string */
spi_init_any_nil (&any);
}
}
/* bonobo-client doesn't wrap seek yet, so we have to. */
ret_offset = accessible_bonobo_stream_client_seek (stream, offset,
- seek_type, cspi_ev ());
+ bonobo_seek_type, cspi_ev ());
cspi_return_val_if_ev ("seek", FALSE);
}
}
GSList *notify = NULL, *l2;
GList **listeners = &controller->mouse_listeners;
gboolean is_consumed;
+#ifdef SPI_KEYEVENT_DEBUG
gboolean found = FALSE;
-
+#endif
if (!listeners)
{
return FALSE;
/* we clone (don't dup) the listener, to avoid refcount inc. */
notify = g_slist_prepend (notify,
spi_listener_clone (listener, ev));
+#ifdef SPI_KEYEVENT_DEBUG
found = TRUE;
+#endif
}
}
}
{
SpiDEController *controller =
SPI_DEVICE_EVENT_CONTROLLER (bonobo_object (servant));
- long key_synth_code;
gint err;
KeySym keysym;
*/
gdk_error_trap_push ();
- key_synth_code = keycode;
switch (synth_type)
{
static inline gboolean
chunk_bounds_within (TextChunk *chunk, TextChunk *test_chunk)
{
- int x1, x2, tx1, tx2;
+ int x1, tx1;
gboolean gtx1, ltx2;
x1 = chunk->clip_bounds.x;
- x2 = x1 + chunk->clip_bounds.width;
tx1 = test_chunk->clip_bounds.x;
- tx2 = tx1 + test_chunk->clip_bounds.width;
gtx1 = (chunk->clip_bounds.x >= test_chunk->clip_bounds.x);
ltx2 = (chunk->clip_bounds.x + chunk->clip_bounds.width
<= test_chunk->clip_bounds.x + test_chunk->clip_bounds.width);
{
Accessible *desktop;
Accessible *application;
- int length;
Accessible **list;
fprintf (stderr, "Testing desktop...\n");
desktop = SPI_getDesktop (0);
g_assert (desktop != NULL);
- g_assert ((length = SPI_getDesktopList (&list)) > 0);
+ g_assert ((SPI_getDesktopList (&list)) > 0);
g_assert (list[0] == desktop);
SPI_freeDesktopList (list);