+2001-12-09 Bill Haneman <bill.haneman@sun.com>
+
+ * configure.in:
+ Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
+ remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
+ it).
+
+ * at-bridge/bridge.c:
+ Beefed up a couple of debug printouts.
+ One-line fix for signal notification name formatting.
+
+ * libspi/accessible.c:
+ Added assertion to spi_accessible_new ().
+
+ * libspi/application.c:
+ Put #ifdef qualifiers around a printf.
+
+ * libspi/value.c:
+ Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
+
+ * registryd/Makefile.am:
+ * util/Makefile.am:
+ Replaces use of XML_I18N_MERGE_SERVER_RULE with
+ INTLTOOL_SERVER_RULE macro.
+
+ * test/simple-at.c:
+ Added an event listener for several ATK signals, for
+ testing and debugging. Removed a few g_warnings.
+ Added test output if focussed item implements the Value interface.
+
+ * test/test-simple.c:
+ Added test_value () function (known not to pass at the moment, so
+ not actually called yet.
+
2001-12-08 Michael Meeks <michael@ximian.com>
* at-bridge/bridge.c (bridge_focus_tracker),
Accessibility_Event e;
SpiAccessible *source;
AtkObject *aobject;
-
+#ifdef SPI_BRIDGE_DEBUG
+ CORBA_string s;
+#endif
+
va_start (args, format);
if (ATK_IS_IMPLEMENTOR (gobject))
e.detail2 = detail2;
#ifdef SPI_BRIDGE_DEBUG
- g_warning ("Emitting event '%s' (%d, %d) on %p",
- e.type, e.detail1, e.detail2, source);
+ s = Accessibility_Accessible__get_name (BONOBO_OBJREF (source), &ev);
+ g_warning ("Emitting event '%s' (%lu, %lu) on %s",
+ e.type, e.detail1, e.detail2, s);
+ CORBA_free (s);
#endif
Accessibility_Registry_notifyEvent (registry, &e, &ev);
#ifdef SPI_BRIDGE_DEBUG
GSignalQuery signal_query;
const gchar *name;
+ gchar *s;
g_signal_query (signal_hint->signal_id, &signal_query);
name = signal_query.signal_name;
- fprintf (stderr, "Received (property) signal %s:%s\n",
- g_type_name (signal_query.itype), name);
+ s = atk_object_get_name (ATK_OBJECT (g_value_get_object (param_values + 0)));
+ fprintf (stderr, "Received (property) signal %s:%s from object %s\n",
+ g_type_name (signal_query.itype), name, s);
#endif
gobject = g_value_get_object (param_values + 0);
gobject = g_value_get_object (param_values + 0);
- emit_eventv (gobject, 0, 0, "%s:%s", name, g_type_name (signal_query.itype));
+ emit_eventv (gobject, 0, 0, "object:%s", name);
return TRUE;
}
Accessibility_Event e;
SpiAccessible *source;
AtkObject *aobject;
-
+#ifdef SPI_BRIDGE_DEBUG
+ CORBA_string s;
+#endif
+
va_start (args, format);
if (ATK_IS_IMPLEMENTOR (gobject))
e.detail2 = detail2;
#ifdef SPI_BRIDGE_DEBUG
- g_warning ("Emitting event '%s' (%d, %d) on %p",
- e.type, e.detail1, e.detail2, source);
+ s = Accessibility_Accessible__get_name (BONOBO_OBJREF (source), &ev);
+ g_warning ("Emitting event '%s' (%lu, %lu) on %s",
+ e.type, e.detail1, e.detail2, s);
+ CORBA_free (s);
#endif
Accessibility_Registry_notifyEvent (registry, &e, &ev);
#ifdef SPI_BRIDGE_DEBUG
GSignalQuery signal_query;
const gchar *name;
+ gchar *s;
g_signal_query (signal_hint->signal_id, &signal_query);
name = signal_query.signal_name;
- fprintf (stderr, "Received (property) signal %s:%s\n",
- g_type_name (signal_query.itype), name);
+ s = atk_object_get_name (ATK_OBJECT (g_value_get_object (param_values + 0)));
+ fprintf (stderr, "Received (property) signal %s:%s from object %s\n",
+ g_type_name (signal_query.itype), name, s);
#endif
gobject = g_value_get_object (param_values + 0);
gobject = g_value_get_object (param_values + 0);
- emit_eventv (gobject, 0, 0, "%s:%s", name, g_type_name (signal_query.itype));
+ emit_eventv (gobject, 0, 0, "object:%s", name);
return TRUE;
}
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
-dnl AM_PROG_XML_I18N_TOOLS
+AC_PROG_INTLTOOL
dnl Checks for programs
AC_PROG_CC
AC_OUTPUT([
Makefile
at-spi-1.0.pc
-dnl po/Makefile.in
+po/Makefile.in
docs/Makefile
docs/reference/Makefile
docs/reference/idl/Makefile
CORBA_exception_init (&ev);
+ g_assert (o);
+
if ((retval = g_hash_table_lookup (get_public_refs (), o)))
{
bonobo_object_ref (BONOBO_OBJECT (retval));
g_type_name (signal_query.itype),
signal_query.signal_name);
+#ifdef SPI_DEBUG
fprintf (stderr, "Received signal %s\n", event_name);
-
+#endif
+
aobject = get_atk_object_ref (g_value_get_object (param_values + 0));
source = spi_accessible_new (aobject);
#include <stdio.h>
#include <libspi/value.h>
+#define PARENT_TYPE SPI_TYPE_BASE
+
/* Static function declarations */
static void
BONOBO_TYPE_FUNC_FULL (SpiValue,
Accessibility_Value,
- BONOBO_TYPE_OBJECT,
+ PARENT_TYPE,
spi_value);
g_return_val_if_fail (value != NULL, 0.0);
+ /*
+ * FIXME: ahem, there's no guarantee that
+ * atk_value_get_minimum_value returns a float.
+ * What we really need is a generic value API here
+ */
+
g_value_init (&gvalue, G_TYPE_FLOAT);
atk_value_get_minimum_value (value, &gvalue);
serverinfodir = $(libdir)/bonobo/servers
serverinfo_DATA = Accessibility_Registry.server
-@XML_I18N_MERGE_SERVER_RULE@
+@INTLTOOL_SERVER_RULE@
EXTRA_DIST = Accessibility_Registry.server.in $(serverinfo_DATA)