diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-03-23 09:01:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-03-23 09:01:30 (GMT) |
commit | fd0df8f884336fc69bd0938453f9712c166f08c8 (patch) | |
tree | f24313aa72a50d41b8076cf6b257129530bf562e /src | |
parent | 03d5e6abfce49d4a18bbf70cbbaa3be8c58bf5b4 (diff) |
Removed references to local sources if required.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/core/theme.c | 3 | ||||
-rw-r--r-- | src/plugins/pglist.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/core/theme.c b/src/gui/core/theme.c index 8e68780..77eff7f 100644 --- a/src/gui/core/theme.c +++ b/src/gui/core/theme.c @@ -63,8 +63,11 @@ static bool extend_with_plugins_themes(GdkScreen *, gboolean); /* RĂ©pertoires de recherche */ static const char *_themes_directories[] = { +#ifndef DISCARD_LOCAL PACKAGE_SOURCE_DIR G_DIR_SEPARATOR_S "themes", +#else THEMES_DIR, +#endif NULL }; diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c index b7c8d1d..85f2b99 100644 --- a/src/plugins/pglist.c +++ b/src/plugins/pglist.c @@ -75,7 +75,11 @@ bool init_all_plugins(bool load) { g_rw_lock_init(&_pg_lock); +#ifndef DISCARD_LOCAL browse_directory_for_plugins(PACKAGE_SOURCE_DIR "/plugins"); +#else + browse_directory_for_plugins(PLUGINS_LIB_DIR); +#endif if (load) load_remaning_plugins(); |