[nautilus] sendto-extension: move under extensions/
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] sendto-extension: move under extensions/
- Date: Fri, 9 Feb 2018 04:44:20 +0000 (UTC)
commit 6934578ebf6e1959ad0634b73196242a30514095
Author: Ernestas Kulik <ernestask gnome org>
Date: Wed Jan 31 10:27:52 2018 +0200
sendto-extension: move under extensions/
Now that the image property page is an extension, both extensions can be
held under the same subdirectory. This commit also makes the image
property extension optional.
extensions/meson.build | 1 +
{nautilus-sendto-extension => extensions/sendto}/meson.build | 0
{nautilus-sendto-extension => extensions/sendto}/nautilus-nste.c | 6 ++----
{nautilus-sendto-extension => extensions/sendto}/nautilus-nste.h | 0
.../sendto}/nautilus-sendto-module.c | 3 +--
meson.build | 9 +++++----
meson_options.txt | 2 +-
7 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/extensions/meson.build b/extensions/meson.build
index f5057cf87..41048589c 100644
--- a/extensions/meson.build
+++ b/extensions/meson.build
@@ -1 +1,2 @@
subdir('image-properties')
+subdir('sendto')
diff --git a/nautilus-sendto-extension/meson.build b/extensions/sendto/meson.build
similarity index 100%
rename from nautilus-sendto-extension/meson.build
rename to extensions/sendto/meson.build
diff --git a/nautilus-sendto-extension/nautilus-nste.c b/extensions/sendto/nautilus-nste.c
similarity index 95%
rename from nautilus-sendto-extension/nautilus-nste.c
rename to extensions/sendto/nautilus-nste.c
index eb25566a1..5c2cc0e94 100644
--- a/nautilus-sendto-extension/nautilus-nste.c
+++ b/extensions/sendto/nautilus-nste.c
@@ -23,9 +23,7 @@
#include <config.h>
#include <string.h>
#include <glib/gi18n-lib.h>
-#include <libnautilus-extension/nautilus-extension-types.h>
-#include <libnautilus-extension/nautilus-file-info.h>
-#include <libnautilus-extension/nautilus-menu-provider.h>
+#include <nautilus-extension.h>
#include "nautilus-nste.h"
@@ -130,7 +128,7 @@ nautilus_nste_get_file_items (NautilusMenuProvider *provider,
}
static void
-nautilus_nste_menu_provider_iface_init (NautilusMenuProviderIface *iface)
+nautilus_nste_menu_provider_iface_init (NautilusMenuProviderInterface *iface)
{
iface->get_file_items = nautilus_nste_get_file_items;
}
diff --git a/nautilus-sendto-extension/nautilus-nste.h b/extensions/sendto/nautilus-nste.h
similarity index 100%
rename from nautilus-sendto-extension/nautilus-nste.h
rename to extensions/sendto/nautilus-nste.h
diff --git a/nautilus-sendto-extension/nautilus-sendto-module.c b/extensions/sendto/nautilus-sendto-module.c
similarity index 91%
rename from nautilus-sendto-extension/nautilus-sendto-module.c
rename to extensions/sendto/nautilus-sendto-module.c
index 8aae9be0e..c21f0c877 100644
--- a/nautilus-sendto-extension/nautilus-sendto-module.c
+++ b/extensions/sendto/nautilus-sendto-module.c
@@ -21,8 +21,7 @@
*/
#include <config.h>
-#include <libnautilus-extension/nautilus-extension-types.h>
-#include <libnautilus-extension/nautilus-column-provider.h>
+#include <nautilus-extension.h>
#include <glib/gi18n-lib.h>
#include "nautilus-nste.h"
diff --git a/meson.build b/meson.build
index 37fde5ed9..ab225e360 100644
--- a/meson.build
+++ b/meson.build
@@ -44,7 +44,9 @@ libgd_dep = libgd.get_variable('libgd_dep')
libm = cc.find_library('libm')
gail = dependency('gail-3.0')
-gexiv = dependency('gexiv2', version: '>= 0.10.0')
+if get_option('extensions')
+ gexiv = dependency('gexiv2', version: '>= 0.10.0')
+endif
gio = dependency('gio-2.0', version: glib_ver)
gio_unix = dependency('gio-unix-2.0', version: glib_ver)
glib = dependency('glib-2.0', version: glib_ver)
@@ -99,9 +101,8 @@ subdir('po')
if get_option('docs')
subdir('docs')
endif
-subdir('extensions')
-if get_option('nst_extension')
- subdir('nautilus-sendto-extension')
+if get_option('extensions')
+ subdir('extensions')
endif
# Compile GSettings schemas when installing from source.
diff --git a/meson_options.txt b/meson_options.txt
index aadbdfead..6a8266777 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,6 +1,6 @@
option('docs', type: 'boolean', value: false)
option('profiling', type: 'boolean', value: false)
-option('nst_extension', type: 'boolean', value: true)
+option('extensions', type: 'boolean', value: true)
option('packagekit', type: 'boolean', value: true)
option('selinux', type: 'boolean', value: false)
option('display-tests', type: 'boolean', value: false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]