From 2777c52f2759513c8e4b66e474ed2da587bd5de5 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 17 Jan 2011 16:56:07 +0000 Subject: [PATCH] input-device: Make ClutterInputDeviceClass private We keep the symbol in the public header, but the definition is now private. You could not sub-class InputDevice anyway, without the instance structure, and the lack of padding in the class made actually implementing devices in backends really hard. --- clutter/clutter-device-manager-private.h | 5 +++++ clutter/clutter-input-device.h | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/clutter/clutter-device-manager-private.h b/clutter/clutter-device-manager-private.h index f3764d72d..56dfc5a37 100644 --- a/clutter/clutter-device-manager-private.h +++ b/clutter/clutter-device-manager-private.h @@ -106,6 +106,11 @@ struct _ClutterInputDevice guint has_cursor : 1; }; +struct _ClutterInputDeviceClass +{ + GObjectClass parent_class; +}; + /* device manager */ void _clutter_device_manager_add_device (ClutterDeviceManager *device_manager, ClutterInputDevice *device); diff --git a/clutter/clutter-input-device.h b/clutter/clutter-input-device.h index e04d47d16..eb95aa157 100644 --- a/clutter/clutter-input-device.h +++ b/clutter/clutter-input-device.h @@ -97,20 +97,6 @@ typedef enum { CLUTTER_INPUT_AXIS_WHEEL } ClutterInputAxis; -/** - * ClutterInputDeviceClass: - * - * The #ClutterInputDeviceClass structure contains only private - * data and should not be accessed directly - * - * Since: 1.2 - */ -struct _ClutterInputDeviceClass -{ - /*< private >*/ - GObjectClass parent_class; -}; - GType clutter_input_device_get_type (void) G_GNUC_CONST; ClutterInputDeviceType clutter_input_device_get_device_type (ClutterInputDevice *device);