gtkhtml r8956 - trunk/a11y
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r8956 - trunk/a11y
- Date: Thu, 4 Sep 2008 08:50:14 +0000 (UTC)
Author: mcrha
Date: Thu Sep 4 08:50:13 2008
New Revision: 8956
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=8956&view=rev
Log:
2008-09-04 Milan Crha <mcrha redhat com>
** Fix for bug #516680
* object.c: (gtk_html_a11y_grab_focus_cb):
Remember focus object same as in other functions.
* object.c: (gtk_html_a11y_cursor_changed_cb), (gtk_html_a11y_new),
(gtk_html_a11y_insert_object_cb), (gtk_html_a11y_delete_object_cb):
Do not touch gail's focus object data, rather keep all work
on atk_focus_tracker_notify. Also removed one forgotten printf
and added one atk_focus_tracker_notify.
Modified:
trunk/a11y/ChangeLog
trunk/a11y/object.c
Modified: trunk/a11y/object.c
==============================================================================
--- trunk/a11y/object.c (original)
+++ trunk/a11y/object.c Thu Sep 4 08:50:13 2008
@@ -303,6 +303,8 @@
return obj;
}
+static AtkObject * gtk_html_a11y_focus_object = NULL;
+
static void
gtk_html_a11y_grab_focus_cb(GtkWidget * widget)
{
@@ -314,18 +316,14 @@
return;
obj = gtk_widget_get_accessible (widget);
- g_object_set_data (G_OBJECT(obj), "gail-focus-object", focus_object);
clue = html_utils_get_accessible(GTK_HTML(widget)->engine->clue, obj);
atk_object_set_parent(clue, obj);
+ gtk_html_a11y_focus_object = focus_object;
atk_focus_tracker_notify (focus_object);
-
}
-
-static AtkObject * gtk_html_a11y_focus_object = NULL;
-
static void
gtk_html_a11y_cursor_changed_cb (GtkWidget *widget)
{
@@ -337,7 +335,6 @@
if (gtk_html_a11y_focus_object != focus_object) {
gtk_html_a11y_focus_object = focus_object;
- g_object_set_data (G_OBJECT(obj), "gail-focus-object", focus_object);
atk_focus_tracker_notify (focus_object);
} else {
if (G_IS_HTML_A11Y_TEXT(focus_object)) {
@@ -364,7 +361,6 @@
if (gtk_html_a11y_focus_object != a11y) {
gtk_html_a11y_focus_object = a11y;
- g_object_set_data (G_OBJECT(obj), "gail-focus-object", a11y);
atk_focus_tracker_notify (a11y);
}
@@ -378,7 +374,6 @@
gtk_html_a11y_delete_object_cb (GtkWidget * widget, int pos, int len)
{
AtkObject * a11y, *obj;
- HTMLCursor *cursor = GTK_HTML (widget)->engine->cursor;
obj = gtk_widget_get_accessible (widget);
a11y = gtk_html_a11y_get_focus_object (widget);
@@ -386,13 +381,11 @@
if (gtk_html_a11y_focus_object != a11y) {
gtk_html_a11y_focus_object = a11y;
- g_object_set_data (G_OBJECT(obj), "gail-focus-object", a11y);
atk_focus_tracker_notify (a11y);
}
if (G_IS_HTML_A11Y_TEXT(a11y)) {
g_signal_emit_by_name (a11y, "text_changed::delete", pos, len);
- printf ("the cur is %d\n", cursor->offset);
}
}
@@ -432,7 +425,7 @@
if (focus_object && gtk_html_a11y_focus_object != focus_object) {
gtk_html_a11y_focus_object = focus_object;
- g_object_set_data (G_OBJECT (accessible), "gail-focus-object", focus_object);
+ atk_focus_tracker_notify (focus_object);
}
return accessible;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]