[gimp] app: add the chosen GFile to GimpColorProfileCallback



commit 20197567470578759eb36171b4b1d8c6d154001a
Author: Michael Natterer <mitch gimp org>
Date:   Thu Sep 29 23:06:46 2016 +0200

    app: add the chosen GFile to GimpColorProfileCallback

 app/actions/image-commands.c       |   16 ++++++++++++----
 app/dialogs/color-profile-dialog.c |    1 +
 app/dialogs/color-profile-dialog.h |    1 +
 3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/image-commands.c b/app/actions/image-commands.c
index b5eb5c1..15b728d 100644
--- a/app/actions/image-commands.c
+++ b/app/actions/image-commands.c
@@ -81,14 +81,16 @@
 
 static void   image_convert_rgb_callback       (GtkWidget                *dialog,
                                                 GimpImage                *image,
-                                                GimpColorProfile         *profile,
+                                                GimpColorProfile         *new_profile,
+                                                GFile                    *new_file,
                                                 GimpColorRenderingIntent  intent,
                                                 gboolean                  bpc,
                                                 gpointer                  user_data);
 
 static void   image_convert_gray_callback      (GtkWidget                *dialog,
                                                 GimpImage                *image,
-                                                GimpColorProfile         *profile,
+                                                GimpColorProfile         *new_profile,
+                                                GFile                    *new_file,
                                                 GimpColorRenderingIntent  intent,
                                                 gboolean                  bpc,
                                                 gpointer                  user_data);
@@ -114,14 +116,16 @@ static void   image_convert_precision_callback (GtkWidget              *dialog,
 
 static void   image_profile_assign_callback    (GtkWidget                *dialog,
                                                 GimpImage                *image,
-                                                GimpColorProfile         *profile,
+                                                GimpColorProfile         *new_profile,
+                                                GFile                    *new_file,
                                                 GimpColorRenderingIntent  intent,
                                                 gboolean                  bpc,
                                                 gpointer                  user_data);
 
 static void   image_profile_convert_callback   (GtkWidget                *dialog,
                                                 GimpImage                *image,
-                                                GimpColorProfile         *profile,
+                                                GimpColorProfile         *new_profile,
+                                                GFile                    *new_file,
                                                 GimpColorRenderingIntent  intent,
                                                 gboolean                  bpc,
                                                 gpointer                  user_data);
@@ -996,6 +1000,7 @@ static void
 image_convert_rgb_callback (GtkWidget                *dialog,
                             GimpImage                *image,
                             GimpColorProfile         *new_profile,
+                            GFile                    *new_file,
                             GimpColorRenderingIntent  intent,
                             gboolean                  bpc,
                             gpointer                  user_data)
@@ -1033,6 +1038,7 @@ static void
 image_convert_gray_callback (GtkWidget                *dialog,
                              GimpImage                *image,
                              GimpColorProfile         *new_profile,
+                             GFile                    *new_file,
                              GimpColorRenderingIntent  intent,
                              gboolean                  bpc,
                              gpointer                  user_data)
@@ -1182,6 +1188,7 @@ static void
 image_profile_assign_callback (GtkWidget                *dialog,
                                GimpImage                *image,
                                GimpColorProfile         *new_profile,
+                               GFile                    *new_file,
                                GimpColorRenderingIntent  intent,
                                gboolean                  bpc,
                                gpointer                  user_data)
@@ -1221,6 +1228,7 @@ static void
 image_profile_convert_callback (GtkWidget                *dialog,
                                 GimpImage                *image,
                                 GimpColorProfile         *new_profile,
+                                GFile                    *new_file,
                                 GimpColorRenderingIntent  intent,
                                 gboolean                  bpc,
                                 gpointer                  user_data)
diff --git a/app/dialogs/color-profile-dialog.c b/app/dialogs/color-profile-dialog.c
index b20b519..6d951a8 100644
--- a/app/dialogs/color-profile-dialog.c
+++ b/app/dialogs/color-profile-dialog.c
@@ -401,6 +401,7 @@ color_profile_dialog_response (GtkWidget     *dialog,
       private->callback (dialog,
                          private->image,
                          profile,
+                         file,
                          private->intent,
                          private->bpc,
                          private->user_data);
diff --git a/app/dialogs/color-profile-dialog.h b/app/dialogs/color-profile-dialog.h
index 8e0a2ed..918c05e 100644
--- a/app/dialogs/color-profile-dialog.h
+++ b/app/dialogs/color-profile-dialog.h
@@ -34,6 +34,7 @@ typedef enum
 typedef void (* GimpColorProfileCallback) (GtkWidget                *dialog,
                                            GimpImage                *image,
                                            GimpColorProfile         *new_profile,
+                                           GFile                    *new_file,
                                            GimpColorRenderingIntent  intent,
                                            gboolean                  bpc,
                                            gpointer                  user_data);


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