[gimp/pippin/linear-is-the-new-black: 10/11] app: disable button to go from brightness contrast to levels
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/pippin/linear-is-the-new-black: 10/11] app: disable button to go from brightness contrast to levels
- Date: Sun, 22 Jan 2017 01:44:23 +0000 (UTC)
commit 1c9239b61e12cd05336ba6ff7812d705397c949b
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Jan 22 01:02:07 2017 +0100
app: disable button to go from brightness contrast to levels
app/file/file-open.c | 3 ++-
app/tools/gimpbrightnesscontrasttool.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index 441d57b..884ca1d 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -281,7 +281,8 @@ file_open_image (Gimp *gimp,
GimpPrecision old_precision = gimp_image_get_precision (image);
gimp_image_undo_disable (image);
- if (old_precision != GIMP_PRECISION_FLOAT_LINEAR)
+ if (g_getenv ("GIMP_PROMOTE_ON_LOAD") &&
+ old_precision != GIMP_PRECISION_FLOAT_LINEAR)
{
gimp_image_convert_precision (image, GIMP_PRECISION_FLOAT_LINEAR,
GEGL_DITHER_NONE,
diff --git a/app/tools/gimpbrightnesscontrasttool.c b/app/tools/gimpbrightnesscontrasttool.c
index 3b39a55..caf2d89 100644
--- a/app/tools/gimpbrightnesscontrasttool.c
+++ b/app/tools/gimpbrightnesscontrasttool.c
@@ -298,7 +298,7 @@ gimp_brightness_contrast_tool_dialog (GimpFilterTool *filter_tool)
gtk_widget_show (scale);
bc_tool->contrast_scale = scale;
-
+#if 0
button = gimp_icon_button_new (GIMP_STOCK_TOOL_LEVELS,
_("Edit these Settings as Levels"));
gtk_box_pack_start (GTK_BOX (main_vbox), button, FALSE, FALSE, 0);
@@ -307,6 +307,7 @@ gimp_brightness_contrast_tool_dialog (GimpFilterTool *filter_tool)
g_signal_connect (button, "clicked",
G_CALLBACK (brightness_contrast_to_levels_callback),
filter_tool);
+#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]