[gimp] plug-ins: gih_save(): file-gih-save-internal takes a GFile now



commit 505473ab76467e5e17f29a25151c790041aca5e0
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 25 22:41:07 2019 +0200

    plug-ins: gih_save(): file-gih-save-internal takes a GFile now

 plug-ins/common/file-gih.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/plug-ins/common/file-gih.c b/plug-ins/common/file-gih.c
index d9682950a0..40faebe6ee 100644
--- a/plug-ins/common/file-gih.c
+++ b/plug-ins/common/file-gih.c
@@ -418,7 +418,6 @@ gih_save (GimpProcedure        *procedure,
   if (status == GIMP_PDB_SUCCESS)
     {
       GimpValueArray *save_retvals;
-      gchar          *uri = g_file_get_uri (file);
       gchar           spacing[8];
       gchar          *paramstring;
 
@@ -430,14 +429,12 @@ gih_save (GimpProcedure        *procedure,
                                 GIMP_TYPE_RUN_MODE, GIMP_RUN_NONINTERACTIVE,
                                 GIMP_TYPE_IMAGE,    image,
                                 GIMP_TYPE_DRAWABLE, drawable,
-                                G_TYPE_STRING,      uri,
+                                G_TYPE_FILE,        file,
                                 G_TYPE_INT,         info.spacing,
                                 G_TYPE_STRING,      info.description,
                                 G_TYPE_STRING,      paramstring,
                                 G_TYPE_NONE);
 
-      g_free (uri);
-
       if (GIMP_VALUES_GET_ENUM (save_retvals, 0) == GIMP_PDB_SUCCESS)
         {
           gimp_set_data (SAVE_PROC, &info, sizeof (info));


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