diff --git a/modules/other/gail/gailwidget.c b/modules/other/gail/gailwidget.c index c9ce43d9be..08ce42955f 100644 --- a/modules/other/gail/gailwidget.c +++ b/modules/other/gail/gailwidget.c @@ -102,6 +102,7 @@ static void gail_widget_focus_event (AtkObject *obj, static void gail_widget_real_initialize (AtkObject *obj, gpointer data); +static char *gail_widget_get_attributes(AtkObject *obj); static GtkWidget* gail_widget_find_viewport (GtkWidget *widget); static gboolean gail_widget_on_screen (GtkWidget *widget); static gboolean gail_widget_all_parents_visible(GtkWidget *widget); @@ -126,6 +127,7 @@ gail_widget_class_init (GailWidgetClass *klass) class->ref_state_set = gail_widget_ref_state_set; class->get_index_in_parent = gail_widget_get_index_in_parent; class->initialize = gail_widget_real_initialize; + class->get_attributes = gail_widget_get_attributes; } static void @@ -1117,3 +1119,16 @@ static gboolean gail_widget_all_parents_visible (GtkWidget *widget) return result; } + +static char *gail_widget_get_attributes(AtkObject *obj) +{ + AtkAttributeSet *attributes; + AtkAttribute *toolkit = g_malloc(sizeof(AtkAttribute)); + + toolkit->name = g_strdup("toolkit"); + toolkit->value = g_strdup("gail"); + +attributes = g_slist_append(NULL, toolkit); + +return attributes; +}