Skip to content

Instantly share code, notes, and snippets.

@thisMagpie
Created July 15, 2015 22:54
Show Gist options
  • Select an option

  • Save thisMagpie/5b0fd3b953cb47ee7aa2 to your computer and use it in GitHub Desktop.

Select an option

Save thisMagpie/5b0fd3b953cb47ee7aa2 to your computer and use it in GitHub Desktop.
static const gchar*
jaw_toplevel_get_description (AtkObject *obj)
{
+ gint i;
+ for(i = 0; i < atk_object_get_n_accessible_children(obj); i++)
+ {
+ AtkObject* child = atk_object_ref_accessible_child(obj, i);
+ const gchar* description = atk_object_get_description(child);
+ if (description && strlen(description) > 0)
+ {
+ g_object_unref(G_OBJECT(child));
+ return description;
+ }
+ g_object_unref(G_OBJECT(child));
+ }
return "Accessible Java application";
}
@@ -126,7 +138,7 @@ jaw_toplevel_get_index_in_parent (AtkObject *obj)
static AtkRole
jaw_toplevel_get_role (AtkObject *obj)
{
- return ATK_ROLE_APPLICATION;
+ return atk_object_get_role(obj);
}
static AtkObject*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment