[nautilus] directory: Warn if extension point not registered
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] directory: Warn if extension point not registered
- Date: Sat, 24 Mar 2018 20:04:15 +0000 (UTC)
commit eef267bf9db8b208927b3022db62e7ab61b1ffe0
Author: Ernestas Kulik <ernestask gnome org>
Date: Sat Mar 24 22:02:29 2018 +0200
directory: Warn if extension point not registered
src/nautilus-directory.c | 4 ++++
1 file changed, 4 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]