18d517bd95
This patch adds the gtk-mac-integration library and uses it to adjust various paths in Geany to point it inside the app bundle if Geany runs from inside the bundle. It adds the utils_resource_dir() utility function to return correct directories for various kinds of resources for all supported operating systems. Using this function the patch adjusts all Geany resource, plugin, icon, doc, and locale paths.
19 lines
642 B
Plaintext
19 lines
642 B
Plaintext
dnl GEANY_CHECK_MAC_INTEGRATION
|
|
dnl Check for gtk-mac-integration to enable improved OS X integration
|
|
dnl
|
|
AC_DEFUN([GEANY_CHECK_MAC_INTEGRATION],
|
|
[
|
|
AC_ARG_ENABLE([mac-integration],
|
|
[AS_HELP_STRING([--enable-mac-integration],
|
|
[use gtk-mac-integration to enable improved OS X integration [default=no]])],
|
|
[geany_enable_mac_integration="$enableval"],
|
|
[geany_enable_mac_integration="no"])
|
|
|
|
AS_IF([test "x$geany_enable_mac_integration" = "xyes"],
|
|
[
|
|
AS_IF([test "x$enable_gtk3" = xyes],
|
|
[PKG_CHECK_MODULES(MAC_INTEGRATION, gtk-mac-integration-gtk3)],
|
|
[PKG_CHECK_MODULES(MAC_INTEGRATION, gtk-mac-integration-gtk2)])
|
|
])
|
|
])
|