[gimp] app: check "gradient-repeat" sensitivity at Blend Options creation.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: check "gradient-repeat" sensitivity at Blend Options creation.
- Date: Wed, 14 Mar 2018 18:01:54 +0000 (UTC)
commit 11ce60ba3d69fc596e7cf99f46b211670a722028
Author: Jehan <jehan girinstud io>
Date: Wed Mar 14 18:57:45 2018 +0100
app: check "gradient-repeat" sensitivity at Blend Options creation.
When starting the tool with one of the gradient types for which the
repeat option should be deactivated, it is not. Run the handler function
once at GUI creation.
Also compare the gradient type with an enum value, which makes the test
clearer than using an int.
app/tools/gimpblendoptions.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpblendoptions.c b/app/tools/gimpblendoptions.c
index b952e44..6036339 100644
--- a/app/tools/gimpblendoptions.c
+++ b/app/tools/gimpblendoptions.c
@@ -291,6 +291,7 @@ gimp_blend_options_gui (GimpToolOptions *tool_options)
g_signal_connect (config, "notify::gradient-type",
G_CALLBACK (blend_options_gradient_type_notify),
combo);
+ blend_options_gradient_type_notify (options, NULL, combo);
/* the offset scale */
scale = gimp_prop_spin_scale_new (config, "offset", NULL,
@@ -374,5 +375,6 @@ blend_options_gradient_type_notify (GimpBlendOptions *options,
GParamSpec *pspec,
GtkWidget *repeat_combo)
{
- gtk_widget_set_sensitive (repeat_combo, options->gradient_type < 6);
+ gtk_widget_set_sensitive (repeat_combo,
+ options->gradient_type < GIMP_GRADIENT_SHAPEBURST_ANGULAR);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]