+2001-12-11 Bill Haneman <bill.haneman@sun.com>
+
+ * test/test-simple.c:
+ Add test_action.
+
+ * libspi/action.c:
+ Bugfix for get_action_from_servant ().
+
2001-12-11 Michael Meeks <michael@ximian.com>
* libspi/libspi.h: remove registry.h and
Replace setenv() call with putenv ().
* libspi/component.c:
- Bugfix in AccessibleComponent_getExtents ().
+ Bugfix in AccessibleComponent_getExtents (),
+ (from Adi Dascal).
2001-12-11 Michael Meeks <michael@ximian.com>
static AtkAction *
get_action_from_servant (PortableServer_Servant servant)
{
- SpiBase *object = SPI_BASE (servant);
+ SpiBase *object = SPI_BASE (bonobo_object_from_servant (servant));
return ATK_ACTION (object->atko);
}
widget = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
GTK_ICON_SIZE_LARGE_TOOLBAR);
test_window_add_and_show (GTK_CONTAINER (vbox), widget);
-
+
widget = g_object_new (GTK_TYPE_RANGE, NULL);
gtk_range_set_range (GTK_RANGE (widget), 0.0, 100.0);
test_window_add_and_show (GTK_CONTAINER (vbox), widget);
}
static void
+test_action (AccessibleAction *action)
+{
+ gint n_actions, i;
+ gchar *s, *sd;
+ g_assert ((n_actions = AccessibleAction_getNActions (action)) >= 0);
+
+ fprintf (stderr, "Testing actions...");
+ for (i = 0; i < n_actions; ++i)
+ {
+ s = AccessibleAction_getName (action, i);
+ g_assert (s);
+ sd = AccessibleAction_getDescription (action, i);
+ g_assert (sd);
+ fprintf (stderr, "%d: %s (%s); ", i, s, sd);
+ SPI_freeString (s);
+ SPI_freeString (sd);
+ /* g_assert (AccessibleAction_doAction (action, i)); */
+ }
+ fprintf (stderr, "\n");
+}
+
+static void
test_desktop (void)
{
Accessible *desktop;
g_assert (tmp != NULL);
if (print_tree)
fprintf (stderr, "At");
+ else
+ test_action (tmp);
AccessibleAction_unref (tmp);
}