[gimp] plug-ins: don't set the BigTIFF checkbox insensitive on second try.



commit 76b15eac185ef855d533ce6b8ac53d871bdb8824
Author: Jehan <jehan girinstud io>
Date:   Fri Mar 11 15:42:19 2022 +0100

    plug-ins: don't set the BigTIFF checkbox insensitive on second try.
    
    Actually I realized that using BigTIFF is not the only valid alternative
    here. We can also try to use a better compression algorithm (or any if
    "None" were selected) and try again to export as ClassicTIFF.
    
    So don't check the option ourselves and don't set it insensitive. Let
    one choose fully what they prefer to do.

 plug-ins/file-tiff/file-tiff-save.c | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-save.c b/plug-ins/file-tiff/file-tiff-save.c
index e88084e785..dbb6eb224a 100644
--- a/plug-ins/file-tiff/file-tiff-save.c
+++ b/plug-ins/file-tiff/file-tiff-save.c
@@ -1226,19 +1226,11 @@ save_dialog (GimpImage     *image,
                                            image);
 
   if (classic_tiff_failed)
-    {
-      GtkWidget *bigtiff_checkbox;
-
-      gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
-                                       "big-tif-warning",
-                                       "\xe2\x9a\xa0 Warning: maximum TIFF file size exceeded. "
-                                       "Retry as BigTIFF or cancel.");
-      g_object_set (config, "bigtiff", TRUE, NULL);
-      bigtiff_checkbox = gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
-                                                           "bigtiff",
-                                                           G_TYPE_NONE);
-      gtk_widget_set_sensitive (bigtiff_checkbox, FALSE);
-    }
+    gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
+                                     "big-tif-warning",
+                                     "\xe2\x9a\xa0 Warning: maximum TIFF file size exceeded. "
+                                     "Retry as BigTIFF or with a different compression algorithm, "
+                                     "or cancel.");
 
   store =
     gimp_int_store_new (_("None"),              GIMP_COMPRESSION_NONE,
@@ -1287,8 +1279,8 @@ save_dialog (GimpImage     *image,
 
   if (classic_tiff_failed)
     gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog),
-                                "compression",
                                 "big-tif-warning",
+                                "compression",
                                 "bigtiff",
                                 "layers-frame",
                                 "save-transparent-pixels",


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