Created
July 15, 2015 22:54
-
-
Save thisMagpie/5b0fd3b953cb47ee7aa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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