[gthumb] Crop: added 1.91:1 to list of predefined ratios



commit 0d838474dd0d8b747a2631c7c73b426cdd99319d
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Aug 10 10:23:26 2022 +0200

    Crop: added 1.91:1 to list of predefined ratios
    
    Closes #237

 extensions/file_tools/gth-file-tool-crop.c   | 4 ++++
 extensions/file_tools/gth-file-tool-resize.c | 5 +++++
 gthumb/typedefs.h                            | 1 +
 3 files changed, 10 insertions(+)
---
diff --git a/extensions/file_tools/gth-file-tool-crop.c b/extensions/file_tools/gth-file-tool-crop.c
index 11a66b4a..e1c7b19c 100644
--- a/extensions/file_tools/gth-file-tool-crop.c
+++ b/extensions/file_tools/gth-file-tool-crop.c
@@ -256,6 +256,10 @@ ratio_combobox_changed_cb (GtkComboBox     *combobox,
                w = 185;
                h = 100;
                break;
+       case GTH_ASPECT_RATIO_191x100:
+               w = 191;
+               h = 100;
+               break;
        case GTH_ASPECT_RATIO_239x100:
                w = 239;
                h = 100;
diff --git a/extensions/file_tools/gth-file-tool-resize.c b/extensions/file_tools/gth-file-tool-resize.c
index be28f501..b93e4a0b 100644
--- a/extensions/file_tools/gth-file-tool-resize.c
+++ b/extensions/file_tools/gth-file-tool-resize.c
@@ -379,6 +379,10 @@ ratio_combobox_changed_cb (GtkComboBox       *combobox,
                w = 185;
                h = 100;
                break;
+       case GTH_ASPECT_RATIO_191x100:
+               w = 191;
+               h = 100;
+               break;
        case GTH_ASPECT_RATIO_239x100:
                w = 239;
                h = 100;
@@ -603,6 +607,7 @@ gth_file_tool_resize_get_options (GthFileTool *base)
                                     _("16∶10"),
                                     _("16∶9 (DVD)"),
                                     _("1.85∶1"),
+                                    _("1.91∶1"),
                                     _("2.39∶1"),
                                     _("Other…"),
                                     NULL);
diff --git a/gthumb/typedefs.h b/gthumb/typedefs.h
index 6e65ae4d..d93e7ecb 100644
--- a/gthumb/typedefs.h
+++ b/gthumb/typedefs.h
@@ -94,6 +94,7 @@ typedef enum {
        GTH_ASPECT_RATIO_16x10,
        GTH_ASPECT_RATIO_16x9,
        GTH_ASPECT_RATIO_185x100,
+       GTH_ASPECT_RATIO_191x100,
        GTH_ASPECT_RATIO_239x100,
        GTH_ASPECT_RATIO_CUSTOM
 } GthAspectRatio;


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