summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-03 14:26:31 +0100
committerraveit65 <[email protected]>2021-02-25 08:10:37 +0100
commit095e38466087fa8bb4b19b9cd0a44e0c55a44997 (patch)
tree458e3cd4b88dfb36f5e6ab39c6f531e318bfeb67
parent8a8723273db890ca0676d20950f4e957d5d76c3c (diff)
downloadpluma-095e38466087fa8bb4b19b9cd0a44e0c55a44997.tar.bz2
pluma-095e38466087fa8bb4b19b9cd0a44e0c55a44997.tar.xz
Drop pluma_dirs_get_pluma_plugins_dir, pluma_dirs_get_pluma_plugins_dir
-rw-r--r--pluma/pluma-dirs.c18
-rw-r--r--pluma/pluma-dirs.h4
-rw-r--r--pluma/pluma-plugins-engine.c2
3 files changed, 1 insertions, 23 deletions
diff --git a/pluma/pluma-dirs.c b/pluma/pluma-dirs.c
index 8ced9c33..161675a9 100644
--- a/pluma/pluma-dirs.c
+++ b/pluma/pluma-dirs.c
@@ -71,21 +71,3 @@ gchar* pluma_dirs_get_pluma_locale_dir(void)
{
return g_build_filename(DATADIR, "locale", NULL);
}
-
-gchar* pluma_dirs_get_pluma_lib_dir(void)
-{
- return g_build_filename(LIBDIR, "pluma", NULL);
-}
-
-gchar* pluma_dirs_get_pluma_plugins_dir(void)
-{
- gchar* lib_dir;
- gchar* plugin_dir;
-
- lib_dir = pluma_dirs_get_pluma_lib_dir();
-
- plugin_dir = g_build_filename(lib_dir, "plugins", NULL);
- g_free(lib_dir);
-
- return plugin_dir;
-}
diff --git a/pluma/pluma-dirs.h b/pluma/pluma-dirs.h
index c375807d..7d30b6c7 100644
--- a/pluma/pluma-dirs.h
+++ b/pluma/pluma-dirs.h
@@ -38,10 +38,6 @@ gchar *pluma_dirs_get_user_accels_file (void);
gchar *pluma_dirs_get_pluma_locale_dir (void);
-gchar *pluma_dirs_get_pluma_lib_dir (void);
-
-gchar *pluma_dirs_get_pluma_plugins_dir (void);
-
G_END_DECLS
#endif /* __PLUMA_DIRS_H__ */
diff --git a/pluma/pluma-plugins-engine.c b/pluma/pluma-plugins-engine.c
index 57601539..2c731514 100644
--- a/pluma/pluma-plugins-engine.c
+++ b/pluma/pluma-plugins-engine.c
@@ -97,7 +97,7 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine)
pluma_dirs_get_user_plugins_dir ());
peas_engine_add_search_path (PEAS_ENGINE (engine),
- pluma_dirs_get_pluma_plugins_dir (),
+ LIBDIR "/pluma/plugins",
PLUMA_DATADIR "/plugins");
g_settings_bind (engine->priv->plugin_settings,