Fix crashes caused by togglebuttons
This commit is contained in:
parent
4612e4de14
commit
d5f2f55635
@ -16,7 +16,7 @@
|
|||||||
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
|
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
|
||||||
Name: gtk2
|
Name: gtk2
|
||||||
Version: %{base_version}
|
Version: %{base_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: http://download.gnome.org/sources/gtk+/2.15/gtk+-%{version}.tar.bz2
|
Source: http://download.gnome.org/sources/gtk+/2.15/gtk+-%{version}.tar.bz2
|
||||||
@ -30,6 +30,8 @@ Patch0: gtk+-2.13.5-lib64.patch
|
|||||||
Patch2: workaround.patch
|
Patch2: workaround.patch
|
||||||
# http://bugzilla.redhat.com/show_bug.cgi?id=478400
|
# http://bugzilla.redhat.com/show_bug.cgi?id=478400
|
||||||
Patch3: default_printer.patch
|
Patch3: default_printer.patch
|
||||||
|
# fixed upstream
|
||||||
|
Patch4: togglebutton-crash.patch
|
||||||
|
|
||||||
BuildRequires: atk-devel >= %{atk_version}
|
BuildRequires: atk-devel >= %{atk_version}
|
||||||
BuildRequires: pango-devel >= %{pango_version}
|
BuildRequires: pango-devel >= %{pango_version}
|
||||||
@ -117,6 +119,7 @@ GTK+ widget toolkit.
|
|||||||
%patch0 -p1 -b .lib64
|
%patch0 -p1 -b .lib64
|
||||||
%patch2 -p1 -b .workaround
|
%patch2 -p1 -b .workaround
|
||||||
%patch3 -p0 -b .default-printer
|
%patch3 -p0 -b .default-printer
|
||||||
|
%patch4 -p0 -b .togglebutton-crash
|
||||||
|
|
||||||
%build
|
%build
|
||||||
libtoolize --force --copy
|
libtoolize --force --copy
|
||||||
@ -294,6 +297,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/gtk-2.0
|
%{_datadir}/gtk-2.0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 27 2009 Matthias Clasen <mclasen@redhat.com> - 2.15.2-2
|
||||||
|
- Fix togglebuttons causing crashes
|
||||||
|
|
||||||
* Tue Jan 27 2009 Matthias Clasen <mclasen@redhat.com> - 2.15.2-1
|
* Tue Jan 27 2009 Matthias Clasen <mclasen@redhat.com> - 2.15.2-1
|
||||||
- Update to 2.15.2
|
- Update to 2.15.2
|
||||||
|
|
||||||
|
14
togglebutton-crash.patch
Normal file
14
togglebutton-crash.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: gtk/gtktogglebutton.c
|
||||||
|
===================================================================
|
||||||
|
--- gtk/gtktogglebutton.c (revision 22218)
|
||||||
|
+++ gtk/gtktogglebutton.c (working copy)
|
||||||
|
@@ -502,7 +502,8 @@
|
||||||
|
|
||||||
|
g_object_notify (G_OBJECT (toggle_button), "active");
|
||||||
|
|
||||||
|
- GTK_BUTTON_CLASS (gtk_toggle_button_parent_class)->clicked (button);
|
||||||
|
+ if (GTK_BUTTON_CLASS (gtk_toggle_button_parent_class)->clicked)
|
||||||
|
+ GTK_BUTTON_CLASS (gtk_toggle_button_parent_class)->clicked (button);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
Loading…
Reference in New Issue
Block a user