[gimp] pdb: forgot to change an URI to GFile in gimp_file_load()



commit 2fa9b8f030273fedb7cc327c9800524df9508d00
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 11 22:48:32 2019 +0200

    pdb: forgot to change an URI to GFile in gimp_file_load()

 app/pdb/file-cmds.c | 5 ++---
 pdb/groups/file.pdb | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/app/pdb/file-cmds.c b/app/pdb/file-cmds.c
index 1a508b1af9..63ab5b6572 100644
--- a/app/pdb/file-cmds.c
+++ b/app/pdb/file-cmds.c
@@ -78,9 +78,8 @@ file_load_invoker (GimpProcedure         *procedure,
 
   g_value_transform (gimp_value_array_index (args, 0),
                      gimp_value_array_index (new_args, 0));
-
-  g_value_take_string (gimp_value_array_index (new_args, 1),
-                       g_file_get_uri (file));
+  g_value_transform (gimp_value_array_index (args, 1),
+                     gimp_value_array_index (new_args, 1));
 
   for (i = 2; i < proc->num_args; i++)
     if (G_IS_PARAM_SPEC_STRING (proc->args[i]))
diff --git a/pdb/groups/file.pdb b/pdb/groups/file.pdb
index 23c905f635..09ef89fafb 100644
--- a/pdb/groups/file.pdb
+++ b/pdb/groups/file.pdb
@@ -76,9 +76,8 @@ HELP
 
   g_value_transform (gimp_value_array_index (args, 0),
                     gimp_value_array_index (new_args, 0));
-
-  g_value_take_string (gimp_value_array_index (new_args, 1),
-                       g_file_get_uri (file));
+  g_value_transform (gimp_value_array_index (args, 1),
+                    gimp_value_array_index (new_args, 1));
 
   for (i = 2; i < proc->num_args; i++)
     if (G_IS_PARAM_SPEC_STRING (proc->args[i]))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]