]> Pileus Git - ~andy/gtk/commitdiff
Detangle includes for device subclasses
authorMatthias Clasen <mclasen@redhat.com>
Tue, 21 Dec 2010 15:37:21 +0000 (10:37 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 21 Dec 2010 17:07:10 +0000 (12:07 -0500)
12 files changed:
gdk/gdkdevice.h
gdk/gdkdeviceprivate.h
gdk/x11/Makefile.am
gdk/x11/gdkdevice-core-x11.c
gdk/x11/gdkdevice-xi.c
gdk/x11/gdkdevice-xi2.c
gdk/x11/gdkdevicemanager-core-x11.c
gdk/x11/gdkdevicemanager-xi.c
gdk/x11/gdkdeviceprivate-xi.h [new file with mode: 0644]
gdk/x11/gdkx11device-core.h
gdk/x11/gdkx11device-xi.h
gdk/x11/gdkx11device-xi2.h

index d65dae8f18429fb7591ae291511718e00662724f..4085facee41c3ff2a7cf14d96b444490188f1e32 100644 (file)
@@ -34,7 +34,7 @@ G_BEGIN_DECLS
 #define GDK_IS_DEVICE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_DEVICE))
 
 typedef struct _GdkDevice GdkDevice;
-typedef struct _GdkDevicePrivate GdkDevicePrivate;
+typedef struct _GdkDeviceClass GdkDeviceClass;
 typedef struct _GdkTimeCoord GdkTimeCoord;
 
 /**
index 29332b2f5d2cfcb2e8effa48167cc2c85bae56d2..1e6550408b87dbc4329c12e4a563ce48b990bc65 100644 (file)
@@ -30,8 +30,6 @@ G_BEGIN_DECLS
 #define GDK_IS_DEVICE_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), GDK_TYPE_DEVICE))
 #define GDK_DEVICE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_DEVICE, GdkDeviceClass))
 
-typedef struct _GdkDeviceClass GdkDeviceClass;
-
 typedef struct _GdkDeviceKey GdkDeviceKey;
 
 struct _GdkDeviceKey
index 3a4ae6660008862375f0287bb142f226af7a7df8..0b7a4fd71e597fce5881449dfa9114cfa692abb8 100644 (file)
@@ -24,6 +24,7 @@ libgdk_x11_la_SOURCES =       \
        gdkasync.h              \
        gdkcursor-x11.c         \
        gdkdevice-core-x11.c    \
+       gdkdeviceprivate-xi.h   \
        gdkdevicemanager-core-x11.c \
        gdkdevicemanager-x11.c  \
        gdkdisplaymanager-x11.c \
index 795cbb483600a3795c82daffe3222960c425097e..938aad77c0dd3c73ef78262b7c310a9909f2c5cd 100644 (file)
 #include "config.h"
 
 #include "gdkx11device-core.h"
+#include "gdkdeviceprivate.h"
 
 #include "gdkinternals.h"
 #include "gdkwindow.h"
 #include "gdkprivate-x11.h"
 #include "gdkasync.h"
 
+struct _GdkX11DeviceCore
+{
+  GdkDevice parent_instance;
+};
+
+struct _GdkX11DeviceCoreClass
+{
+  GdkDeviceClass parent_class;
+};
+
 static gboolean gdk_x11_device_core_get_history (GdkDevice       *device,
                                                  GdkWindow       *window,
                                                  guint32          start,
index 17a90ec0b20e454fde78133d7cb2a1f16bf3e71c..bf816759f8b279d06ad57e2b6210db3435d4ee8f 100644 (file)
 #include "config.h"
 
 #include "gdkx11device-xi.h"
+#include "gdkdeviceprivate-xi.h"
 
 #include "gdkwindow.h"
 #include "gdkintl.h"
-#include "gdkdeviceprivate.h"
 #include "gdkprivate-x11.h"
 #include "gdkasync.h"
 
index 6c9b5283174db30e576bfa244a7843f6b402e59c..53367fd47d084dda4e291429297a5398d6bdbeca 100644 (file)
 #include "config.h"
 
 #include "gdkx11device-xi2.h"
+#include "gdkdeviceprivate.h"
 
 #include "gdkintl.h"
 #include "gdkasync.h"
 #include "gdkprivate-x11.h"
 
-#include <X11/extensions/XInput2.h>
+struct _GdkX11DeviceXI2
+{
+  GdkDevice parent_instance;
+
+  gint device_id;
+};
+
+struct _GdkX11DeviceXI2Class
+{
+  GdkDeviceClass parent_class;
+};
 
 static void gdk_x11_device_xi2_get_property (GObject      *object,
                                              guint         prop_id,
index 99c0b07640c8b0f82cb22d44c46a297925704a47..fa9f7033e0dc5c29b16a950abfa35e08bda36771 100644 (file)
 #include "gdkx11devicemanager-core.h"
 #include "gdkx11device-core.h"
 
-#include "gdkkeysyms.h"
 #include "gdkdevicemanagerprivate.h"
+#include "gdkdeviceprivate.h"
 #include "gdkdisplayprivate.h"
 #include "gdkeventtranslator.h"
 #include "gdkprivate-x11.h"
+#include "gdkkeysyms.h"
 
 #ifdef HAVE_XKB
 #include <X11/XKBlib.h>
index 1dd9f84ca2c6b6c5b3538e7724a712c31a582cbc..564f55b3dbc7561637e003d17f91f679a582d6f2 100644 (file)
@@ -20,8 +20,9 @@
 #include "config.h"
 
 #include "gdkx11devicemanager-xi.h"
-#include "gdkx11device-xi.h"
+#include "gdkdeviceprivate-xi.h"
 
+#include "gdkdevicemanagerprivate.h"
 #include "gdkeventtranslator.h"
 #include "gdkintl.h"
 #include "gdkprivate-x11.h"
diff --git a/gdk/x11/gdkdeviceprivate-xi.h b/gdk/x11/gdkdeviceprivate-xi.h
new file mode 100644 (file)
index 0000000..4a22808
--- /dev/null
@@ -0,0 +1,58 @@
+/* GDK - The GIMP Drawing Kit
+ * Copyright (C) 2009 Carlos Garnacho <carlosg@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GDK_DEVICE_XI_PRIVATE_H__
+#define __GDK_DEVICE_XI_PRIVATE_H__
+
+#include "gdkx11device-xi.h"
+#include "gdkdeviceprivate.h"
+
+G_BEGIN_DECLS
+
+struct _GdkX11DeviceXI
+{
+  GdkDevice parent_instance;
+
+  /*< private >*/
+  guint32 device_id;
+  XDevice *xdevice;
+
+  gint button_press_type;
+  gint button_release_type;
+  gint key_press_type;
+  gint key_release_type;
+  gint motion_notify_type;
+  gint proximity_in_type;
+  gint proximity_out_type;
+  gint state_notify_type;
+
+  /* minimum key code for device */
+  gint min_keycode;
+  gint *axis_data;
+  guint in_proximity : 1;
+};
+
+struct _GdkX11DeviceXIClass
+{
+  GdkDeviceClass parent_class;
+};
+
+G_END_DECLS
+
+#endif /* __GDK_DEVICE_XI_PRIVATE_H__ */
index e6aea0a1df4e714157f465d2f728fa9e455a955f..d53d7b84186a275ebb5581b3bfc21c608bdbfcd6 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __GDK_X11_DEVICE_CORE_H__
 #define __GDK_X11_DEVICE_CORE_H__
 
-#include "gdkdeviceprivate.h"
+#include <gdk/gdk.h>
 
 G_BEGIN_DECLS
 
@@ -34,15 +34,6 @@ G_BEGIN_DECLS
 typedef struct _GdkX11DeviceCore GdkX11DeviceCore;
 typedef struct _GdkX11DeviceCoreClass GdkX11DeviceCoreClass;
 
-struct _GdkX11DeviceCore
-{
-  GdkDevice parent_instance;
-};
-
-struct _GdkX11DeviceCoreClass
-{
-  GdkDeviceClass parent_class;
-};
 
 GType gdk_x11_device_core_get_type (void) G_GNUC_CONST;
 
index a22fcabd57667e7cf926f3bb438470634e0586a8..061f8dfcdd95511a690553e2b6c72b0d360b4b4a 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __GDK_X11_DEVICE_XI_H__
 #define __GDK_X11_DEVICE_XI_H__
 
-#include "gdkdeviceprivate.h"
+#include <gdk/gdk.h>
 
 #include <X11/extensions/XInput.h>
 
@@ -36,34 +36,6 @@ G_BEGIN_DECLS
 typedef struct _GdkX11DeviceXI GdkX11DeviceXI;
 typedef struct _GdkX11DeviceXIClass GdkX11DeviceXIClass;
 
-struct _GdkX11DeviceXI
-{
-  GdkDevice parent_instance;
-
-  /*< private >*/
-  guint32 device_id;
-  XDevice *xdevice;
-
-  gint button_press_type;
-  gint button_release_type;
-  gint key_press_type;
-  gint key_release_type;
-  gint motion_notify_type;
-  gint proximity_in_type;
-  gint proximity_out_type;
-  gint state_notify_type;
-
-  /* minimum key code for device */
-  gint min_keycode;
-  gint *axis_data;
-
-  guint in_proximity : 1;
-};
-
-struct _GdkX11DeviceXIClass
-{
-  GdkDeviceClass parent_class;
-};
 
 GType gdk_x11_device_xi_get_type (void) G_GNUC_CONST;
 
index 6ef339f65af5984a24616e5960bbf79f4454b5c7..85fe78871429e2cbdcf6638af5f006dc62ec71f8 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __GDK_X11_DEVICE_XI2_H__
 #define __GDK_X11_DEVICE_XI2_H__
 
-#include "gdkdeviceprivate.h"
+#include <gdk/gdk.h>
 
 #include <X11/extensions/XInput2.h>
 
@@ -36,19 +36,6 @@ G_BEGIN_DECLS
 typedef struct _GdkX11DeviceXI2 GdkX11DeviceXI2;
 typedef struct _GdkX11DeviceXI2Class GdkX11DeviceXI2Class;
 
-struct _GdkX11DeviceXI2
-{
-  GdkDevice parent_instance;
-
-  /*< private >*/
-  gint device_id;
-};
-
-struct _GdkX11DeviceXI2Class
-{
-  GdkDeviceClass parent_class;
-};
-
 GType gdk_x11_device_xi2_get_type (void) G_GNUC_CONST;
 
 G_END_DECLS