gtk: added clipboard patch for 100% CPU usage problems

This commit is contained in:
Matt Housh 2007-11-15 15:35:48 -06:00
parent 8922dac502
commit ee09afcd44
3 changed files with 14 additions and 2 deletions

View File

@ -3,3 +3,4 @@ b50c279539fca50a496d7feafae350d4 gdkwindow.patch
c46f34addc2fe3ea6756055d59fb8856 gtk+-2.12.1.tar.bz2
3c88561a89724dfe9d807077ba0603c8 gtk-register.sh
142aacfd2e437691078a1648733b3fe0 gtk.immodules
9d8d54627b9ec37900a10d0295600dd9 gtkclipboard.patch

View File

@ -5,15 +5,16 @@
name=gtk
version=2.12.1
release=1
release=2
source=(ftp://ftp.gtk.org/pub/gtk/2.12/${name}+-$version.tar.bz2 \
gdk-pixbuf.loaders gtk.immodules gdkwindow.patch \
gtk-register.sh)
gtk-register.sh gtkclipboard.patch)
build () {
cd gtk+-$version
patch -p0 -i $SRC/gdkwindow.patch
patch -p1 -i $SRC/gtkclipboard.patch
./configure --prefix=/usr \
--mandir=/usr/man

10
gtk/gtkclipboard.patch Normal file
View File

@ -0,0 +1,10 @@
--- gtk+2.0-2.11.6.orig/gtk/gtkclipboard.c 2007-08-31 16:52:48.000000000 +0200
+++ gtk+2.0-2.11.6/gtk/gtkclipboard.c 2007-08-31 16:53:16.000000000 +0200
@@ -287,6 +287,7 @@
gtk_clipboard_get_for_display (GdkDisplay *display,
GdkAtom selection)
{
+ g_return_val_if_fail (display != NULL, NULL);
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
g_return_val_if_fail (!display->closed, NULL);