[gimp] app: use gimp_directory_file() in gimp_plug_in_manager_get_pluginrc()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use gimp_directory_file() in gimp_plug_in_manager_get_pluginrc()
- Date: Tue, 29 Jul 2014 10:37:34 +0000 (UTC)
commit 085638271346df910382b5c9c5c0e8947c293475
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 29 12:37:08 2014 +0200
app: use gimp_directory_file() in gimp_plug_in_manager_get_pluginrc()
app/plug-in/gimppluginmanager-restore.c | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/app/plug-in/gimppluginmanager-restore.c b/app/plug-in/gimppluginmanager-restore.c
index a1576e7..e7b4e2c 100644
--- a/app/plug-in/gimppluginmanager-restore.c
+++ b/app/plug-in/gimppluginmanager-restore.c
@@ -254,20 +254,14 @@ gimp_plug_in_manager_get_pluginrc (GimpPlugInManager *manager)
if (gimp->config->plug_in_rc_path)
{
- gchar *path;
-
- path = gimp_config_path_expand (gimp->config->plug_in_rc_path,
- TRUE, NULL);
-
- if (! g_path_is_absolute (path))
- {
- gchar *str = g_build_filename (gimp_directory (), path, NULL);
+ gchar *path = gimp_config_path_expand (gimp->config->plug_in_rc_path,
+ TRUE, NULL);
- g_free (path);
- path = str;
- }
+ if (g_path_is_absolute (path))
+ pluginrc = g_file_new_for_path (path);
+ else
+ pluginrc = gimp_directory_file (path, NULL);
- pluginrc = g_file_new_for_path (path);
g_free (path);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]