gail now provides toolkit = gail as an AtkAttribute of all gtk objects.

https://bugzilla.gnome.org/show_bug.cgi?id=598952

https://bugzilla.gnome.org/show_bug.cgi?id=638920
This commit is contained in:
Trevor Saunders 2011-01-19 15:39:04 +08:00 committed by Li Yuan
parent 80e1340e51
commit f710cca49d

View File

@ -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;
}