diff options
author | Don Scorgie <dscorgie@src.gnome.org> | 2006-01-29 21:56:05 +0000 |
---|---|---|
committer | Don Scorgie <dscorgie@src.gnome.org> | 2006-01-29 21:56:05 +0000 |
commit | 1e426d77a135ac5a2af93007fe2f6915dde880aa (patch) | |
tree | adb9017a1c7692c0c5c67fc3c9b5fcef60968f08 | |
parent | 70c7030841120b729530480aed6e7a776f7dc995 (diff) | |
download | yelp-1e426d77a135ac5a2af93007fe2f6915dde880aa.tar.gz |
Workaround for a11y issues. Should fix bug #157941
* src/yelp-html.cpp:
Workaround for a11y issues. Should fix bug #157941
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/yelp-html.cpp | 16 |
2 files changed, 21 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2006-01-29 Don Scorgie <dscorgie@cvs.gnome.org> + + * src/yelp-html.cpp: + Workaround for a11y issues. Should fix bug #157941 + 2006-01-29 Brent Smith <gnome@nextreality.net> * data/man.xml.in: diff --git a/src/yelp-html.cpp b/src/yelp-html.cpp index fbf9df2c..c6a2ec47 100644 --- a/src/yelp-html.cpp +++ b/src/yelp-html.cpp @@ -359,11 +359,26 @@ yelp_html_printf (YelpHtml *html, char *format, ...) g_free (string); } +/* Fire "children_changed::add" event to refresh "UI-Grab" window of GOK, + * this event is not fired when using gtk_moz_embed_xxx_stream, + * see Mozilla bug #293670. Done in a timeout to allow mozilla to + * actually draw to the screen */ + +static gboolean +timeout_update_gok (YelpHtml *html) +{ + g_signal_emit_by_name (gtk_widget_get_accessible (GTK_WIDGET (html)), + "children_changed::add", -1, NULL, NULL); + return FALSE; +} + void yelp_html_close (YelpHtml *html) { d (g_print ("yelp_html_close\n")); gtk_moz_embed_close_stream (GTK_MOZ_EMBED (html)); + g_timeout_add (2000, (GSourceFunc) timeout_update_gok, + html); } gboolean @@ -483,3 +498,4 @@ yelp_html_initialize (void) gtk_moz_embed_set_comp_path (MOZILLA_HOME); } + |