[gtk/keymap-rework-2: 8/34] Move GdkKeymapKey to gdktypes.h



commit 31fb5c287ab264e557d51d76f223bc1a4e589975
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 5 11:02:21 2020 -0400

    Move GdkKeymapKey to gdktypes.h
    
    We are going to use this type in a different header.

 gdk/gdkkeys.h  | 27 ---------------------------
 gdk/gdktypes.h | 27 +++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/gdk/gdkkeys.h b/gdk/gdkkeys.h
index 5189bc54c7..d58c6b2475 100644
--- a/gdk/gdkkeys.h
+++ b/gdk/gdkkeys.h
@@ -35,33 +35,6 @@
 G_BEGIN_DECLS
 
 
-typedef struct _GdkKeymapKey GdkKeymapKey;
-
-/**
- * GdkKeymapKey:
- * @keycode: the hardware keycode. This is an identifying number for a
- *   physical key.
- * @group: indicates movement in a horizontal direction. Usually groups are used
- *   for two different languages. In group 0, a key might have two English
- *   characters, and in group 1 it might have two Hebrew characters. The Hebrew
- *   characters will be printed on the key next to the English characters.
- * @level: indicates which symbol on the key will be used, in a vertical direction.
- *   So on a standard US keyboard, the key with the number “1” on it also has the
- *   exclamation point ("!") character on it. The level indicates whether to use
- *   the “1” or the “!” symbol. The letter keys are considered to have a lowercase
- *   letter at level 0, and an uppercase letter at level 1, though only the
- *   uppercase letter is printed.
- *
- * A #GdkKeymapKey is a hardware key that can be mapped to a keyval.
- */
-struct _GdkKeymapKey
-{
-  guint keycode;
-  gint  group;
-  gint  level;
-};
-
-
 #define GDK_TYPE_KEYMAP              (gdk_keymap_get_type ())
 #define GDK_KEYMAP(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_KEYMAP, GdkKeymap))
 #define GDK_IS_KEYMAP(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_KEYMAP))
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index 39f38788a0..69f16c40ed 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -622,6 +622,33 @@ typedef enum
     return G_TYPE_INSTANCE_GET_CLASS (ptr, module_obj_name##_get_type (), ModuleObjName##Class); }       \
   G_GNUC_END_IGNORE_DEPRECATIONS
 
+typedef struct _GdkKeymapKey GdkKeymapKey;
+
+/**
+ * GdkKeymapKey:
+ * @keycode: the hardware keycode. This is an identifying number for a
+ *   physical key.
+ * @group: indicates movement in a horizontal direction. Usually groups are used
+ *   for two different languages. In group 0, a key might have two English
+ *   characters, and in group 1 it might have two Hebrew characters. The Hebrew
+ *   characters will be printed on the key next to the English characters.
+ * @level: indicates which symbol on the key will be used, in a vertical direction.
+ *   So on a standard US keyboard, the key with the number “1” on it also has the
+ *   exclamation point ("!") character on it. The level indicates whether to use
+ *   the “1” or the “!” symbol. The letter keys are considered to have a lowercase
+ *   letter at level 0, and an uppercase letter at level 1, though only the
+ *   uppercase letter is printed.
+ *
+ * A #GdkKeymapKey is a hardware key that can be mapped to a keyval.
+ */
+struct _GdkKeymapKey
+{
+  guint keycode;
+  gint  group;
+  gint  level;
+};
+
+
 G_END_DECLS
 
 #endif /* __GDK_TYPES_H__ */


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