summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-03-24 22:02:29 +0200
committerErnestas Kulik <ernestask@gnome.org>2018-03-24 22:02:29 +0200
commiteef267bf9db8b208927b3022db62e7ab61b1ffe0 (patch)
treedf580e8f17a3befa2356334d8e6cfabe4c5c5d7c
parent4dfbea370c485472c7d63f4bad9dc8f4779c28e5 (diff)
downloadnautilus-eef267bf9db8b208927b3022db62e7ab61b1ffe0.tar.gz
directory: Warn if extension point not registered
-rw-r--r--src/nautilus-directory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-directory.c b/src/nautilus-directory.c
index 8bb2ce74f..0ab13dbbe 100644
--- a/src/nautilus-directory.c
+++ b/src/nautilus-directory.c
@@ -699,6 +699,10 @@ nautilus_directory_provider_get_all (void)
GList *extensions;
extension_point = g_io_extension_point_lookup (NAUTILUS_DIRECTORY_PROVIDER_EXTENSION_POINT_NAME);
+ if (extension_point == NULL)
+ {
+ g_warning ("Directory provider extension point not registered. Did you call nautilus_ensure_extension_points()?");
+ }
extensions = g_io_extension_point_get_extensions (extension_point);
return extensions;