[gimp] app: fix progress message for precision conversion



commit 548e8bc4eb28739ddb6e02ee4d1f101dc2e088db
Author: Michael Natterer <mitch gimp org>
Date:   Mon Nov 23 18:41:16 2015 +0100

    app: fix progress message for precision conversion

 app/dialogs/convert-precision-dialog.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/app/dialogs/convert-precision-dialog.c b/app/dialogs/convert-precision-dialog.c
index c2a160a..61b0c1b 100644
--- a/app/dialogs/convert-precision-dialog.c
+++ b/app/dialogs/convert-precision-dialog.c
@@ -304,13 +304,18 @@ convert_precision_dialog_response (GtkWidget     *widget,
     {
       GimpProgress  *progress;
       GimpPrecision  precision;
-
-      progress = gimp_progress_start (dialog->progress, FALSE,
-                                      _("Converting to lower bit depth"));
+      const gchar   *enum_desc;
 
       precision = gimp_babl_precision (dialog->component_type,
                                        dialog->linear);
 
+      gimp_enum_get_value (GIMP_TYPE_PRECISION, precision,
+                           NULL, NULL, &enum_desc, NULL);
+
+      progress = gimp_progress_start (dialog->progress, FALSE,
+                                      _("Converting image to %s"),
+                                      enum_desc);
+
       gimp_image_convert_precision (dialog->image,
                                     precision,
                                     dialog->layer_dither_type,


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