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.
This commit is contained in:
Emmanuele Bassi 2011-01-17 16:56:07 +00:00
parent 001f84875a
commit 2777c52f27
2 changed files with 5 additions and 14 deletions

View File

@ -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);

View File

@ -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);