summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Smith <gnome@nextreality.net>2006-02-17 00:16:09 +0000
committerBrent Smith <bmsmith@src.gnome.org>2006-02-17 00:16:09 +0000
commitdb37d2be2a394df7e909888287ceab8b35383249 (patch)
tree81ac66f83104a88a0412c1a9eae2323f7bebc7de
parent65871771a278625032b67cfcdd603daedb17e51c (diff)
downloadyelp-db37d2be2a394df7e909888287ceab8b35383249.tar.gz
re-applied DonS' a11y patch, see bug #329407, comment #9
2006-02-16 Brent Smith <gnome@nextreality.net> * src/yelp-html.cpp: re-applied DonS' a11y patch, see bug #329407, comment #9
-rw-r--r--ChangeLog5
-rw-r--r--src/yelp-html.cpp16
2 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eb95b8c1..45e1c5bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-02-16 Brent Smith <gnome@nextreality.net>
+ * src/yelp-html.cpp:
+ re-applied DonS' a11y patch, see bug #329407, comment #9
+
+2006-02-16 Brent Smith <gnome@nextreality.net>
+
* src/yelp-main.c: (main):
set MOZ_DISABLE_PANGO in the environment to fix broken rendering of
certain characters, fixes #329461
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);
}
+