[gimp] plug-ins: using a GimpSpinScale instead of a GimpScaleEntry in…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: using a GimpSpinScale instead of a GimpScaleEntry in…
- Date: Sat, 19 Feb 2022 01:31:36 +0000 (UTC)
commit 657911ce489a93282f09274895e129c218ab3597
Author: Jehan <jehan girinstud io>
Date: Sat Feb 19 01:26:17 2022 +0100
plug-ins: using a GimpSpinScale instead of a GimpScaleEntry in…
… various plug-ins.
plug-ins/common/file-png.c | 2 +-
plug-ins/file-jpeg/jpeg-save.c | 4 ++--
plug-ins/file-webp/file-webp-dialog.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index c885d11066..11b094c484 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -2284,7 +2284,7 @@ save_dialog (GimpImage *image,
image);
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
- "compression", GIMP_TYPE_SCALE_ENTRY);
+ "compression", GIMP_TYPE_SPIN_SCALE);
store = gimp_int_store_new (_("Automatic"), PNG_FORMAT_AUTO,
_("8 bpc RGB"), PNG_FORMAT_RGB8,
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 557ef6fe51..9f2a53a514 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -802,7 +802,7 @@ save_dialog (GimpProcedure *procedure,
(orig_quality > 0), NULL, NULL, FALSE);
/* Quality as a GimpScaleEntry. */
- gimp_procedure_dialog_get_scale_entry (GIMP_PROCEDURE_DIALOG (dialog), "quality", 100.0);
+ gimp_procedure_dialog_get_spin_scale (GIMP_PROCEDURE_DIALOG (dialog), "quality", 100.0);
/* changing quality disables custom quantization tables, and vice-versa */
g_signal_connect (config, "notify::quality",
@@ -876,7 +876,7 @@ save_dialog (GimpProcedure *procedure,
gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
"advanced-title", _("Advanced Options"));
widget = gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
- "smoothing", GIMP_TYPE_SCALE_ENTRY);
+ "smoothing", GIMP_TYPE_SPIN_SCALE);
gimp_help_set_help_data (widget, NULL, "file-jpeg-save-smoothing");
/* Add some logics for "Use original quality". */
diff --git a/plug-ins/file-webp/file-webp-dialog.c b/plug-ins/file-webp/file-webp-dialog.c
index f0935123d5..867371185f 100644
--- a/plug-ins/file-webp/file-webp-dialog.c
+++ b/plug-ins/file-webp/file-webp-dialog.c
@@ -90,9 +90,9 @@ save_dialog (GimpImage *image,
/* Create scale for image and alpha quality */
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
- "quality", GIMP_TYPE_SCALE_ENTRY);
+ "quality", GIMP_TYPE_SPIN_SCALE);
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
- "alpha-quality", GIMP_TYPE_SCALE_ENTRY);
+ "alpha-quality", GIMP_TYPE_SPIN_SCALE);
/* Create frame for quality options */
gimp_procedure_dialog_fill_box (GIMP_PROCEDURE_DIALOG (dialog),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]