[gtk+/gdk-backend: 4/91] Move GdkKeymapClass definition to internal header



commit 85990ab9139252b8fbc9003e25c50a64e1159872
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Dec 6 12:40:41 2010 +0100

    Move GdkKeymapClass definition to internal header
    
    This lets us change this without affecting apps.

 gdk/gdkinternals.h |    9 +++++++++
 gdk/gdkkeys.c      |    1 +
 gdk/gdkkeys.h      |    9 ---------
 3 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index a5a7511..59f8de0 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -311,6 +311,15 @@ struct _GdkDisplayClass
 		  gboolean    is_error);
 };
 
+struct _GdkKeymapClass
+{
+  GObjectClass parent_class;
+
+  void (*direction_changed) (GdkKeymap *keymap);
+  void (*keys_changed)      (GdkKeymap *keymap);
+  void (*state_changed)     (GdkKeymap *keymap);
+};
+
 extern GSList    *_gdk_displays;
 extern gchar     *_gdk_display_name;
 extern gint       _gdk_screen_number;
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index 102b6f0..09e8bda 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -26,6 +26,7 @@
 
 #include "config.h"
 
+#include "gdkinternals.h"
 #include "gdkkeys.h"
 
 #include "gdkdisplay.h"
diff --git a/gdk/gdkkeys.h b/gdk/gdkkeys.h
index 4551b98..cc04057 100644
--- a/gdk/gdkkeys.h
+++ b/gdk/gdkkeys.h
@@ -89,15 +89,6 @@ struct _GdkKeymap
   GdkDisplay *GSEAL (display);
 };
 
-struct _GdkKeymapClass
-{
-  GObjectClass parent_class;
-
-  void (*direction_changed) (GdkKeymap *keymap);
-  void (*keys_changed)      (GdkKeymap *keymap);
-  void (*state_changed)     (GdkKeymap *keymap);
-};
-
 GType gdk_keymap_get_type (void) G_GNUC_CONST;
 
 #ifndef GDK_MULTIHEAD_SAFE



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