[evolution-patches] GtkHTML a11y crash fix for 331546



Hi,
	Please review the attached patch for:
http://bugzilla.gnome.org/show_bug.cgi?id=331546

	Thanks!
		Harry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/ChangeLog,v
retrieving revision 1.27
diff -u -p -r1.27 ChangeLog
--- ChangeLog	17 Aug 2005 01:53:32 -0000	1.27
+++ ChangeLog	27 Feb 2006 13:17:35 -0000
@@ -1,3 +1,9 @@
+2006-02-27  Harry Lu <harry lu sun com>
+
+	Fix for #331546
+
+	* object.c: (gtk_html_a11y_grab_focus_cb): Fix a critical warning.
+
 2005-08-10  Mengjie Yu  <meng-jie yu sun com>
 
 	* text.c: (html_a11y_text_get_run_attributes):
Index: object.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/object.c,v
retrieving revision 1.13
diff -u -p -r1.13 object.c
--- object.c	6 Jul 2005 10:35:00 -0000	1.13
+++ object.c	27 Feb 2006 13:17:35 -0000
@@ -309,7 +309,9 @@ gtk_html_a11y_grab_focus_cb(GtkWidget * 
 
 
 	focus_object = gtk_html_a11y_get_focus_object (widget);
-	g_return_if_fail (focus_object != NULL);
+	if (focus_object == NULL)
+		return;
+
 	obj = gtk_widget_get_accessible (widget);
 	g_object_set_data (G_OBJECT(obj), "gail-focus-object", focus_object);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]