[gimp] libgimpwidgets: gimp_prop_enum_combo_box_new(): reorder GimpSelectCriterion



commit 89641ec5ea170e27b8ad14e68afb1a62e718cc6a
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 10 11:48:31 2017 +0200

    libgimpwidgets: gimp_prop_enum_combo_box_new(): reorder GimpSelectCriterion
    
    so Alpha is not between the HSV and LCH group; put it after R, G, B.

 libgimpwidgets/gimppropwidgets.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libgimpwidgets/gimppropwidgets.c b/libgimpwidgets/gimppropwidgets.c
index dfb1282..f5e79fa 100644
--- a/libgimpwidgets/gimppropwidgets.c
+++ b/libgimpwidgets/gimppropwidgets.c
@@ -537,6 +537,23 @@ gimp_prop_enum_combo_box_new (GObject     *config,
                                                GIMP_DESATURATE_AVERAGE,
                                                GIMP_DESATURATE_VALUE);
     }
+  else if (param_spec->value_type == GIMP_TYPE_SELECT_CRITERION)
+    {
+      /* ditto */
+      store = gimp_enum_store_new_with_values (param_spec->value_type,
+                                               11,
+                                               GIMP_SELECT_CRITERION_COMPOSITE,
+                                               GIMP_SELECT_CRITERION_R,
+                                               GIMP_SELECT_CRITERION_G,
+                                               GIMP_SELECT_CRITERION_B,
+                                               GIMP_SELECT_CRITERION_A,
+                                               GIMP_SELECT_CRITERION_H,
+                                               GIMP_SELECT_CRITERION_S,
+                                               GIMP_SELECT_CRITERION_V,
+                                               GIMP_SELECT_CRITERION_LCH_L,
+                                               GIMP_SELECT_CRITERION_LCH_C,
+                                               GIMP_SELECT_CRITERION_LCH_H);
+    }
 
   if (store)
     {


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