libgail-1.22.3-Relax-X11-dependencies.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From cca72c48b5643fa62e1d55b7b181e147f5ba7fe9 Mon Sep 17 00:00:00 2001
  2. From: Lionel Landwerlin <llandwerlin@gmail.com>
  3. Date: Sun, 28 Mar 2010 21:47:38 +0200
  4. Subject: [PATCH] Relax X11 dependency
  5. Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
  6. ---
  7. configure.in | 4 +++-
  8. gail/gailwindow.c | 2 +-
  9. 2 files changed, 4 insertions(+), 2 deletions(-)
  10. diff --git a/configure.in b/configure.in
  11. index 3801655..abaf417 100644
  12. --- a/configure.in
  13. +++ b/configure.in
  14. @@ -86,7 +86,9 @@ GTK_REQUIRED_VERSION=2.9.4
  15. PKG_CHECK_MODULES(DEP, $ATK_PACKAGES >= $ATK_REQUIRED_VERSION \
  16. $GTK_PACKAGES >= $GTK_REQUIRED_VERSION)
  17. -if test "$gail_native_win32" != "yes"; then
  18. +AC_ARG_ENABLE(x, [ --disable-x disable x11 backend ],x11_backend=no,x11_backend=yes)
  19. +
  20. +if test "$gail_native_win32" != "yes" -a "$x11_backend" != "no"; then
  21. PKG_CHECK_MODULES(X, x11, :, [
  22. # pkg-config modules not found (only present since X11R7 aka Xorg); use
  23. diff --git a/gail/gailwindow.c b/gail/gailwindow.c
  24. index 616b25e..add454b 100644
  25. --- a/gail/gailwindow.c
  26. +++ b/gail/gailwindow.c
  27. @@ -1071,7 +1071,7 @@ gail_window_get_mdi_zorder (AtkComponent *component)
  28. return get_window_zorder (widget->window);
  29. }
  30. -#elif defined (GDK_WINDOWING_WIN32)
  31. +#elif defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_DIRECTFB)
  32. static gint
  33. gail_window_get_mdi_zorder (AtkComponent *component)
  34. --
  35. 1.7.0.2