Fix #408527. Add a check.
authorLi Yuan <li.yuan@sun.com>
Fri, 2 Mar 2007 09:31:59 +0000 (09:31 +0000)
committerLi Yuan <liyuan@src.gnome.org>
Fri, 2 Mar 2007 09:31:59 +0000 (09:31 +0000)
2007-03-02  Li Yuan <li.yuan@sun.com>

        * atk/atkobject.c:
        (atk_object_notify_state_change):
        Fix #408527. Add a check.

svn path=/trunk/; revision=1157

ChangeLog
atk/atkobject.c

index 7ccbea7..1139437 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-02  Li Yuan <li.yuan@sun.com>
+
+       * atk/atkobject.c: 
+       (atk_object_notify_state_change):
+       Fix #408527. Add a check.
+
 2007-02-25  Tor Lillqvist  <tml@novell.com>
 
        * atk/atkmisc.h: Fix typo: declare atk_misc_get_type(), not
index 2d2921f..5e88303 100755 (executable)
@@ -993,6 +993,8 @@ atk_object_notify_state_change (AtkObject *accessible,
 {
   G_CONST_RETURN gchar* name;
 
+  g_return_if_fail (ATK_IS_OBJECT (accessible));
+
   name = atk_state_type_get_name (state);
   g_signal_emit (accessible, atk_object_signals[STATE_CHANGE],
                  g_quark_from_string (name),