ports/opt (2.4): gtk: added clipboard patch for 100% CPU usage problems
commit ee09afcd440762a405d42fded6b48aa015fe8738 Author: Matt Housh <jaeger@crux.nu> Date: Thu Nov 15 15:35:48 2007 -0600 gtk: added clipboard patch for 100% CPU usage problems diff --git a/gtk/.md5sum b/gtk/.md5sum index 9894694..02ca51d 100644 --- a/gtk/.md5sum +++ b/gtk/.md5sum @@ -3,3 +3,4 @@ b50c279539fca50a496d7feafae350d4 gdkwindow.patch c46f34addc2fe3ea6756055d59fb8856 gtk+-2.12.1.tar.bz2 3c88561a89724dfe9d807077ba0603c8 gtk-register.sh 142aacfd2e437691078a1648733b3fe0 gtk.immodules +9d8d54627b9ec37900a10d0295600dd9 gtkclipboard.patch diff --git a/gtk/Pkgfile b/gtk/Pkgfile index 2d8be4c..08728c5 100644 --- a/gtk/Pkgfile +++ b/gtk/Pkgfile @@ -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 diff --git a/gtk/gtkclipboard.patch b/gtk/gtkclipboard.patch new file mode 100644 index 0000000..889332a --- /dev/null +++ b/gtk/gtkclipboard.patch @@ -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); +
participants (1)
-
crux@crux.nu