[gimp/gimp-2-10] app: keep display-enums.h (sort-of) alphabetically sorted



commit 241c8dd756362e46717c1371cc93d063ae5b50ac
Author: Ell <ell_se yahoo com>
Date:   Mon Jul 16 01:40:23 2018 -0400

    app: keep display-enums.h (sort-of) alphabetically sorted
    
    (cherry picked from commit f026a3fc2d674862f3918a966ab6309c793d94af)

 app/display/display-enums.c | 62 ++++++++++++++++++++++-----------------------
 app/display/display-enums.h | 24 +++++++++---------
 2 files changed, 43 insertions(+), 43 deletions(-)
---
diff --git a/app/display/display-enums.c b/app/display/display-enums.c
index e54861fffb..2ef15fc046 100644
--- a/app/display/display-enums.c
+++ b/app/display/display-enums.c
@@ -72,6 +72,37 @@ gimp_button_release_type_get_type (void)
   return type;
 }
 
+GType
+gimp_compass_orientation_get_type (void)
+{
+  static const GEnumValue values[] =
+  {
+    { GIMP_COMPASS_ORIENTATION_AUTO, "GIMP_COMPASS_ORIENTATION_AUTO", "auto" },
+    { GIMP_COMPASS_ORIENTATION_HORIZONTAL, "GIMP_COMPASS_ORIENTATION_HORIZONTAL", "horizontal" },
+    { GIMP_COMPASS_ORIENTATION_VERTICAL, "GIMP_COMPASS_ORIENTATION_VERTICAL", "vertical" },
+    { 0, NULL, NULL }
+  };
+
+  static const GimpEnumDesc descs[] =
+  {
+    { GIMP_COMPASS_ORIENTATION_AUTO, NC_("compass-orientation", "Auto"), NULL },
+    { GIMP_COMPASS_ORIENTATION_HORIZONTAL, NC_("compass-orientation", "Horizontal"), NULL },
+    { GIMP_COMPASS_ORIENTATION_VERTICAL, NC_("compass-orientation", "Vertical"), NULL },
+    { 0, NULL, NULL }
+  };
+
+  static GType type = 0;
+
+  if (G_UNLIKELY (! type))
+    {
+      type = g_enum_register_static ("GimpCompassOrientation", values);
+      gimp_type_set_translation_context (type, "compass-orientation");
+      gimp_enum_set_value_descriptions (type, descs);
+    }
+
+  return type;
+}
+
 GType
 gimp_cursor_precision_get_type (void)
 {
@@ -455,37 +486,6 @@ gimp_vector_mode_get_type (void)
   return type;
 }
 
-GType
-gimp_compass_orientation_get_type (void)
-{
-  static const GEnumValue values[] =
-  {
-    { GIMP_COMPASS_ORIENTATION_AUTO, "GIMP_COMPASS_ORIENTATION_AUTO", "auto" },
-    { GIMP_COMPASS_ORIENTATION_HORIZONTAL, "GIMP_COMPASS_ORIENTATION_HORIZONTAL", "horizontal" },
-    { GIMP_COMPASS_ORIENTATION_VERTICAL, "GIMP_COMPASS_ORIENTATION_VERTICAL", "vertical" },
-    { 0, NULL, NULL }
-  };
-
-  static const GimpEnumDesc descs[] =
-  {
-    { GIMP_COMPASS_ORIENTATION_AUTO, NC_("compass-orientation", "Auto"), NULL },
-    { GIMP_COMPASS_ORIENTATION_HORIZONTAL, NC_("compass-orientation", "Horizontal"), NULL },
-    { GIMP_COMPASS_ORIENTATION_VERTICAL, NC_("compass-orientation", "Vertical"), NULL },
-    { 0, NULL, NULL }
-  };
-
-  static GType type = 0;
-
-  if (G_UNLIKELY (! type))
-    {
-      type = g_enum_register_static ("GimpCompassOrientation", values);
-      gimp_type_set_translation_context (type, "compass-orientation");
-      gimp_enum_set_value_descriptions (type, descs);
-    }
-
-  return type;
-}
-
 GType
 gimp_zoom_focus_get_type (void)
 {
diff --git a/app/display/display-enums.h b/app/display/display-enums.h
index 658bcbcfec..f7d18df714 100644
--- a/app/display/display-enums.h
+++ b/app/display/display-enums.h
@@ -44,6 +44,18 @@ typedef enum
 } GimpButtonReleaseType;
 
 
+#define GIMP_TYPE_COMPASS_ORIENTATION (gimp_compass_orientation_get_type ())
+
+GType gimp_compass_orientation_get_type (void) G_GNUC_CONST;
+
+typedef enum
+{
+  GIMP_COMPASS_ORIENTATION_AUTO,       /*< desc="Auto"       >*/
+  GIMP_COMPASS_ORIENTATION_HORIZONTAL, /*< desc="Horizontal" >*/
+  GIMP_COMPASS_ORIENTATION_VERTICAL    /*< desc="Vertical"   >*/
+} GimpCompassOrientation;
+
+
 #define GIMP_TYPE_CURSOR_PRECISION (gimp_cursor_precision_get_type ())
 
 GType gimp_cursor_precision_get_type (void) G_GNUC_CONST;
@@ -197,18 +209,6 @@ typedef enum
 } GimpVectorMode;
 
 
-#define GIMP_TYPE_COMPASS_ORIENTATION (gimp_compass_orientation_get_type ())
-
-GType gimp_compass_orientation_get_type (void) G_GNUC_CONST;
-
-typedef enum
-{
-  GIMP_COMPASS_ORIENTATION_AUTO,       /*< desc="Auto"       >*/
-  GIMP_COMPASS_ORIENTATION_HORIZONTAL, /*< desc="Horizontal" >*/
-  GIMP_COMPASS_ORIENTATION_VERTICAL    /*< desc="Vertical"   >*/
-} GimpCompassOrientation;
-
-
 #define GIMP_TYPE_ZOOM_FOCUS (gimp_zoom_focus_get_type ())
 
 GType gimp_zoom_focus_get_type (void) G_GNUC_CONST;


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