From ed2716f2cbd3f7a707a2b4c8270e72afeb45d6fd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 14 Sep 2009 03:23:59 +0000 Subject: [PATCH] fix the bell --- gtk-bell.patch | 12 ++++++++++++ gtk2.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gtk-bell.patch diff --git a/gtk-bell.patch b/gtk-bell.patch new file mode 100644 index 0000000..b36040d --- /dev/null +++ b/gtk-bell.patch @@ -0,0 +1,12 @@ +diff -up gtk+-2.17.11/gdk/x11/gdkdisplay-x11.c.bell gtk+-2.17.11/gdk/x11/gdkdisplay-x11.c +--- gtk+-2.17.11/gdk/x11/gdkdisplay-x11.c.bell 2009-09-13 23:20:20.540275068 -0400 ++++ gtk+-2.17.11/gdk/x11/gdkdisplay-x11.c 2009-09-13 23:20:39.649290396 -0400 +@@ -691,7 +691,7 @@ gdk_display_beep (GdkDisplay *display) + { + g_return_if_fail (GDK_IS_DISPLAY (display)); + +- XBell (GDK_DISPLAY_XDISPLAY (display), 0); ++ XkbBell (GDK_DISPLAY_XDISPLAY (display), None, 0, None); + } + + /** diff --git a/gtk2.spec b/gtk2.spec index 0e94e7e..c12f4fd 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -17,7 +17,7 @@ Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Name: gtk2 Version: %{base_version} -Release: 2%{?dist} +Release: 3%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://download.gnome.org/sources/gtk+/2.17/gtk+-%{version}.tar.bz2 @@ -31,6 +31,7 @@ Patch0: gtk+-2.13.5-lib64.patch # from upstream Patch1: gtk2-fix-install.patch Patch2: root-event-mask.patch +Patch3: gtk-bell.patch BuildRequires: atk-devel >= %{atk_version} BuildRequires: pango-devel >= %{pango_version} @@ -144,6 +145,7 @@ This package contains developer documentation for the GTK+ widget toolkit. %patch0 -p1 -b .lib64 %patch1 -p1 -b .fix-install %patch2 -p1 -b .root-event-mask +%patch3 -p1 -b .bell # make sure that gtkmarshalers.{c, h} get regenerated during the build # - caused by print_authentication.patch @@ -385,6 +387,9 @@ fi %changelog +* Sun Sep 13 2009 Matthias Clasen - 2.17.11-3 +- Fix the bell + * Sun Sep 6 2009 Matthias Clasen - 2.17.11-2 - Fix the initial event mask for the root window (#521137)