[Xfce4-commits] [panel-plugins/xfce4-indicator-plugin] 01/01: Make indicator-application optional
noreply at xfce.org
noreply at xfce.org
Sun Jul 16 12:35:08 CEST 2017
This is an automated email from the git hooks/post-receive script.
a n d r z e j r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-indicator-plugin.
commit 7c3c1e68abd91f054fe02f7ea904d8c904de106a
Author: Viktor Odintsev <zakhams at gmail.com>
Date: Fri Jul 14 02:18:09 2017 +0300
Make indicator-application optional
---
configure.ac.in | 10 ++++++++++
panel-plugin/indicator.c | 5 +++++
2 files changed, 15 insertions(+)
diff --git a/configure.ac.in b/configure.ac.in
index 1ae586a..150d480 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -117,6 +117,15 @@ INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir ${INDICATOR_PKGNAME}`
AC_SUBST([INDICATORDIR])
AC_SUBST([INDICATORICONSDIR])
+dnl **********************************************
+dnl *** Optional indicator-application support ***
+dnl **********************************************
+AC_ARG_ENABLE([application], AC_HELP_STRING([--disable-application],
+ [Disable indicator-application support]), [], [enable_application=yes])
+if test x"$enable_application" == x"no"; then
+ AC_DEFINE([DISABLE_APPLICATION], [], [indicator-application suport disabled])
+fi
+
dnl *********************************
dnl *** Substitute platform flags ***
dnl *********************************
@@ -147,6 +156,7 @@ echo
echo "Build Configuration:"
echo
echo "* Debug Support: $enable_debug"
+echo "* Application Support: $enable_application"
echo "* Use IndicatorNg API: $HAVE_INDICATOR_NG_H"
if test x"$IDO_FOUND" = x"yes"; then
echo "* Use IDO library: yes"
diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 475e230..7bb6f75 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -432,6 +432,11 @@ indicator_load_module (IndicatorPlugin *indicator,
if (!g_str_has_suffix (name,G_MODULE_SUFFIX))
return FALSE;
+#ifdef DISABLE_APPLICATION
+ if (!g_strcmp0 (name, "libapplication.so"))
+ return FALSE;
+#endif
+
g_debug ("Loading Module: %s", name);
file_name = g_build_filename (INDICATOR_DIR, name, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list