[gtk+] gail now provides toolkit = gail as an AtkAttribute of all gtk objects.
- From: Li Yuan <liyuan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gail now provides toolkit = gail as an AtkAttribute of all gtk objects.
- Date: Wed, 19 Jan 2011 07:37:32 +0000 (UTC)
commit f710cca49d342e43625373bcfae02902753fddb0
Author: Trevor Saunders <trev saunders gmail com>
Date: Wed Jan 19 15:39:04 2011 +0800
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
modules/other/gail/gailwidget.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/modules/other/gail/gailwidget.c b/modules/other/gail/gailwidget.c
index c9ce43d..08ce429 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;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]