[gnome-control-center] wacom: Update from gnome-settings-daemon
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Update from gnome-settings-daemon
- Date: Tue, 8 Oct 2013 18:17:02 +0000 (UTC)
commit 7be584f4f9d89161c053e9b8ddb7468216b1724d
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 8 19:25:01 2013 +0200
wacom: Update from gnome-settings-daemon
panels/wacom/gsd-wacom-device.c | 16 ++++++++--------
panels/wacom/gsd-wacom-device.h | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/panels/wacom/gsd-wacom-device.c b/panels/wacom/gsd-wacom-device.c
index c30e057..12204e1 100644
--- a/panels/wacom/gsd-wacom-device.c
+++ b/panels/wacom/gsd-wacom-device.c
@@ -1861,7 +1861,7 @@ gsd_wacom_device_get_device_type (GsdWacomDevice *device)
return device->priv->type;
}
-gint32 *
+gint *
gsd_wacom_device_get_area (GsdWacomDevice *device)
{
int i, id;
@@ -1904,8 +1904,8 @@ gsd_wacom_device_get_area (GsdWacomDevice *device)
}
static gboolean
-fill_old_axis (int device_id,
- gint32 *items)
+fill_old_axis (int device_id,
+ gint *items)
{
int ndevices, i;
XDeviceInfoPtr list, slist;
@@ -1931,8 +1931,8 @@ fill_old_axis (int device_id,
if (V->num_axes >= 2) {
items[0] = ax[0].min_value;
- items[1] = ax[0].max_value;
- items[2] = ax[1].min_value;
+ items[2] = ax[0].max_value;
+ items[1] = ax[1].min_value;
items[3] = ax[1].max_value;
g_debug ("Found factory values for device calibration");
retval = TRUE;
@@ -1953,18 +1953,18 @@ fill_old_axis (int device_id,
return retval;
}
-gint32 *
+gint *
gsd_wacom_device_get_default_area (GsdWacomDevice *device)
{
int id;
- gint32 *device_area;
+ gint *device_area;
gboolean ret;
g_return_val_if_fail (GSD_IS_WACOM_DEVICE (device), NULL);
g_object_get (device->priv->gdk_device, "device-id", &id, NULL);
- device_area = g_new0 (gint32, 4);
+ device_area = g_new0 (int, 4);
ret = fill_old_axis (id, device_area);
if (!ret) {
g_free (device_area);
diff --git a/panels/wacom/gsd-wacom-device.h b/panels/wacom/gsd-wacom-device.h
index de1b4a2..3753218 100644
--- a/panels/wacom/gsd-wacom-device.h
+++ b/panels/wacom/gsd-wacom-device.h
@@ -172,8 +172,8 @@ GsdWacomStylus * gsd_wacom_device_get_stylus_for_type (GsdWacomDevice *devic
GsdWacomStylusType type);
GsdWacomDeviceType gsd_wacom_device_get_device_type (GsdWacomDevice *device);
-gint32 * gsd_wacom_device_get_area (GsdWacomDevice *device);
-gint32 * gsd_wacom_device_get_default_area (GsdWacomDevice *device);
+gint * gsd_wacom_device_get_area (GsdWacomDevice *device);
+gint * gsd_wacom_device_get_default_area (GsdWacomDevice *device);
const char * gsd_wacom_device_type_to_string (GsdWacomDeviceType type);
GList * gsd_wacom_device_get_buttons (GsdWacomDevice *device);
GsdWacomTabletButton *gsd_wacom_device_get_button (GsdWacomDevice *device,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]