openbsd-ports/x11/gpointing-device-settings/patches/patch-test_test-xinput-utils_c
mpi 49ed4a3db3 Import gpointing-device-settings-1.5.1
GPointingDeviceSettings is a GUI tool for setting pointing device such
as TrackPoint or Touchpad. Each UI can be written as dynamic loadable
module, so a third party can add its own UI.

Based on a port from jasper@ with tweaks by ajacoutot@

ok ajacoutot@, jasper@
2011-08-31 15:15:25 +00:00

17 lines
514 B
Plaintext

$OpenBSD: patch-test_test-xinput-utils_c,v 1.1.1.1 2011/08/31 15:15:25 mpi Exp $
Fix build with gtk+-2.22.
From https://bugzilla.gnome.org/show_bug.cgi?id=631068
--- test/test-xinput-utils.c.orig Sun Oct 4 01:14:47 2009
+++ test/test-xinput-utils.c Mon Jan 17 14:42:04 2011
@@ -28,7 +28,7 @@ void
teardown (void)
{
if (device)
- XCloseDevice(GDK_DISPLAY(), device);
+ XCloseDevice(gdk_x11_get_default_xdisplay(), device);
g_clear_error(&error);
g_clear_error(&expected_error);
}