[gimp] app: default to GIMP_HELP_BROWSER_WEB_BROWSER if there is no webkit
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: default to GIMP_HELP_BROWSER_WEB_BROWSER if there is no webkit
- Date: Sun, 25 May 2014 13:26:14 +0000 (UTC)
commit f1573c42d2ab9a582cdba6f5a1a242e98530531e
Author: Michael Natterer <mitch gimp org>
Date: Sun May 25 15:23:58 2014 +0200
app: default to GIMP_HELP_BROWSER_WEB_BROWSER if there is no webkit
app/config/gimpguiconfig.c | 5 +++++
configure.ac | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/config/gimpguiconfig.c b/app/config/gimpguiconfig.c
index e886b88..dbd16c9 100644
--- a/app/config/gimpguiconfig.c
+++ b/app/config/gimpguiconfig.c
@@ -33,7 +33,12 @@
#include "gimp-intl.h"
+#ifdef HAVE_WEBKIT
#define DEFAULT_HELP_BROWSER GIMP_HELP_BROWSER_GIMP
+#else
+#define DEFAULT_HELP_BROWSER GIMP_HELP_BROWSER_WEB_BROWSER
+#endif
+
#define DEFAULT_THEME "Default"
#define DEFAULT_USER_MANUAL_ONLINE_URI \
diff --git a/configure.ac b/configure.ac
index 642aa3e..8429ee7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1406,6 +1406,9 @@ else
fi
AC_SUBST(WEB_PAGE)
+if test "x$have_webkit" = "xyes"; then
+ AC_DEFINE(HAVE_WEBKIT, 1, [Define to 1 if webkit is available])
+fi
AM_CONDITIONAL(HAVE_WEBKIT, test "x$have_webkit" = xyes)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]