GtkHTML a11y crash fix for 331546
Harry Lu <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <1141046905.1947.21.camel@silvermedal> |
Hi, Please review the attached patch for: http://bugzilla.gnome.org/show_bug.cgi?id=331546 Thanks! Harry _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches
focus.diff
(text/x-patch, 1.1 KB)
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 <[email protected]> + + Fix for #331546 + + * object.c: (gtk_html_a11y_grab_focus_cb): Fix a critical warning. + 2005-08-10 Mengjie Yu <[email protected]> * 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);