[gtk/matthiasc/for-master: 12/14] gdk: Drop the GdkByteOrder enum



commit e14322137f583af47dd0256b45cee39e4cf118be
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 26 19:45:01 2020 -0400

    gdk: Drop the GdkByteOrder enum
    
    Move it to the private gdkvisual-x11.h header, which
    is the only place where its used.

 gdk/gdktypes.h          | 18 ------------------
 gdk/x11/gdkvisual-x11.h |  6 ++++++
 2 files changed, 6 insertions(+), 18 deletions(-)
---
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index f05456d366..1fed3ac8ca 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -159,24 +159,6 @@ typedef enum
   GDK_GRAVITY_STATIC
 } GdkGravity;
 
-/**
- * GdkByteOrder:
- * @GDK_LSB_FIRST: The values are stored with the least-significant byte
- *   first. For instance, the 32-bit value 0xffeecc would be stored
- *   in memory as 0xcc, 0xee, 0xff, 0x00.
- * @GDK_MSB_FIRST: The values are stored with the most-significant byte
- *   first. For instance, the 32-bit value 0xffeecc would be stored
- *   in memory as 0x00, 0xff, 0xee, 0xcc.
- *
- * A set of values describing the possible byte-orders
- * for storing pixel values in memory.
- */
-typedef enum
-{
-  GDK_LSB_FIRST,
-  GDK_MSB_FIRST
-} GdkByteOrder;
-
 /* Types of modifiers.
  */
 /**
diff --git a/gdk/x11/gdkvisual-x11.h b/gdk/x11/gdkvisual-x11.h
index 9b3bdd5ee3..7fbf9d20d4 100644
--- a/gdk/x11/gdkvisual-x11.h
+++ b/gdk/x11/gdkvisual-x11.h
@@ -46,6 +46,12 @@ typedef enum
   GDK_VISUAL_DIRECT_COLOR
 } GdkVisualType;
 
+typedef enum
+{
+  GDK_LSB_FIRST,
+  GDK_MSB_FIRST
+} GdkByteOrder;
+
 struct _GdkX11Visual
 {
   GObject parent_instance;


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