From b56005b4256ace881f2195490d44daaf5c7b60d9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sep 05 2008 14:07:24 +0000 Subject: fix a greeter crash --- diff --git a/at-spi.spec b/at-spi.spec index 3713af9..8c88036 100644 --- a/at-spi.spec +++ b/at-spi.spec @@ -10,7 +10,7 @@ Summary: Assistive Technology Service Provider Interface Name: at-spi Version: 1.23.91 -Release: 1%{?dist} +Release: 2%{?dist} URL: http://developer.gnome.org/projects/gap/ Source0: http://download.gnome.org/sources/at-spi/1.23/%{name}-%{version}.tar.bz2 @@ -39,6 +39,8 @@ BuildRequires: libXevie-devel BuildRequires: libXt-devel Patch2: at-spi-silence-no-event-spew.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=548782 +Patch3: liyuan-greeter-crash.patch %description at-spi allows assistive technologies to access GTK-based @@ -75,6 +77,7 @@ Python bindings allowing to use at-spi in python programs. %prep %setup -q %patch2 -p1 -b .spew +%patch3 -p0 -b .greeter-crash %build @@ -121,6 +124,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Sep 5 2008 Matthias Clasen - 1.23.91-2 +- Fix a greeter crash + * Tue Sep 2 2008 Matthias Clasen - 1.23.91-1 - Update to 1.23.91 diff --git a/liyuan-greeter-crash.patch b/liyuan-greeter-crash.patch new file mode 100644 index 0000000..5700837 --- /dev/null +++ b/liyuan-greeter-crash.patch @@ -0,0 +1,20 @@ +--- atk-bridge/bridge.c.orig 2008-09-05 15:37:54.046098231 +0800 ++++ atk-bridge/bridge.c 2008-09-05 15:59:55.399017901 +0800 +@@ -1101,7 +1101,7 @@ + CORBA_any any; + CORBA_Object c_obj; + char *sp = NULL; +- AtkObject *ao; ++ AtkObject *ao = NULL; + gint detail1 = 0, detail2 = 0; + SpiAccessible *s_ao = NULL; + #ifdef SPI_BRIDGE_DEBUG +@@ -1162,7 +1162,7 @@ + ao = ATK_OBJECT (child); + g_object_ref (ao); + } +- else ++ else if (strcmp (detail, "add") == 0) + { + ao = atk_object_ref_accessible_child (ATK_OBJECT (gobject), + detail1);