[gnome-disk-utility] Make it possible to turn off remote access



commit c1caa9eeb529b788b940dc48b4d1183cf89900af
Author: David Zeuthen <davidz redhat com>
Date:   Tue Feb 23 13:00:34 2010 -0500

    Make it possible to turn off remote access
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 configure.ac               |   13 +++++++++++++
 src/palimpsest/gdu-shell.c |    2 ++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9838124..99c621e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -153,6 +153,17 @@ PKG_CHECK_MODULES(LIBATASMART, [libatasmart >= 0.14])
 PKG_CHECK_MODULES(AVAHI_UI, [avahi-ui >= $AVAHI_UI_REQUIRED])
 
 # *************
+# Remote Access
+# *************
+have_remote_access=no
+AC_ARG_ENABLE(remote_access, AS_HELP_STRING([--disable-remote-access], [disable access to remote udisks daemons]))
+if test "x$enable_remote_access" != "xno"; then
+   AC_DEFINE(HAVE_REMOTE_ACCESS, 1, [Defined if remote access is enabled])
+   have_remote_access=yes
+fi
+AM_CONDITIONAL(HAVE_REMOTE_ACCESS, [test "have_remote_access" = "yes"])
+
+# *************
 # GNOME Keyring
 # *************
 
@@ -269,5 +280,7 @@ echo "
         Maintainer mode:            ${USE_MAINTAINER_MODE}
         Building api docs:          ${enable_gtk_doc}
         Nautilus extension:         ${have_nautilus}
+
         GNOME Keyring support:      ${have_gnome_keyring}
+        Remote Access:              ${have_remote_access}
 "
diff --git a/src/palimpsest/gdu-shell.c b/src/palimpsest/gdu-shell.c
index b8883e0..8b04a83 100644
--- a/src/palimpsest/gdu-shell.c
+++ b/src/palimpsest/gdu-shell.c
@@ -817,7 +817,9 @@ static const gchar *ui =
         "<ui>"
         "  <menubar>"
         "    <menu action='file'>"
+#if HAVE_REMOTE_ACCESS
         "      <menuitem action='file-connect'/>"
+#endif
         "      <menu action='file-create'>"
         "        <menuitem action='file-create-linux-md-array'/>"
         "      </menu>"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]