[evolution-patches] GtkHTML a11y patch for 331528
- From: Harry Lu <Harry Lu Sun COM>
- To: "evolution-patches gnome org" <evolution-patches gnome org>
- Subject: [evolution-patches] GtkHTML a11y patch for 331528
- Date: Thu, 23 Feb 2006 21:57:07 +0800
Hi,
Attached is the patch for
http://bugzilla.gnome.org/show_bug.cgi?id=331528
Please review it.
Thanks!
Harry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/ChangeLog,v
retrieving revision 1.27
diff -u -r1.27 ChangeLog
--- ChangeLog 17 Aug 2005 01:53:32 -0000 1.27
+++ ChangeLog 23 Feb 2006 13:40:47 -0000
@@ -1,3 +1,9 @@
+2006-02-23 Harry Lu <harry lu sun com>
+
+ Fix for #331528.
+
+ * text.c: (html_a11y_text_ref_state_set): fix a CRITICAL assersion.
+
2005-08-10 Mengjie Yu <meng-jie yu sun com>
* text.c: (html_a11y_text_get_run_attributes):
Index: text.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/text.c,v
retrieving revision 1.18
diff -u -r1.18 text.c
--- text.c 17 Aug 2005 01:53:32 -0000 1.18
+++ text.c 23 Feb 2006 13:40:47 -0000
@@ -318,9 +318,14 @@
{
AtkStateSet *state_set;
GtkHTML * html;
+ GtkHTMLA11Y *html_a11y;
state_set = ATK_OBJECT_CLASS (parent_class)->ref_state_set (accessible);
- html = GTK_HTML_A11Y_GTKHTML(html_a11y_get_gtkhtml_parent(HTML_A11Y(accessible)));
+ html_a11y = html_a11y_get_gtkhtml_parent (HTML_A11Y (accessible));
+ if (!html_a11y)
+ return state_set;
+
+ html = GTK_HTML_A11Y_GTKHTML (html_a11y);
if (!html || !html->engine)
return state_set;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]