[gimp] app: set the palette import dialog's "# Colors" scale to logarithmic
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set the palette import dialog's "# Colors" scale to logarithmic
- Date: Thu, 18 May 2017 16:24:04 +0000 (UTC)
commit 4f903a69b39b203d433fb6abfbd470421fbce76c
Author: Michael Natterer <mitch gimp org>
Date: Thu May 18 18:21:51 2017 +0200
app: set the palette import dialog's "# Colors" scale to logarithmic
because the scale is useless otherwise with its range of 2..10000,
and because I needed a test case for the next commit (the
gimp_scale_entry_set_logarithmic() API was unused).
app/dialogs/palette-import-dialog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/palette-import-dialog.c b/app/dialogs/palette-import-dialog.c
index 10642dd..261b125 100644
--- a/app/dialogs/palette-import-dialog.c
+++ b/app/dialogs/palette-import-dialog.c
@@ -324,6 +324,7 @@ palette_import_dialog_new (GimpContext *context)
256, 2, 10000, 1, 10, 0,
TRUE, 0.0, 0.0,
NULL, NULL));
+ gimp_scale_entry_set_logarithmic (GTK_OBJECT (private->num_colors), TRUE);
g_signal_connect_swapped (private->num_colors,
"value-changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]