[gnome-control-center] wacom: Use updated _get_area() API
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Use updated _get_area() API
- Date: Tue, 10 Jan 2012 19:59:08 +0000 (UTC)
commit e70502cc3b6d20e3718bb0a03ad7c3fd64671a0a
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 10 19:55:01 2012 +0000
wacom: Use updated _get_area() API
panels/wacom/cc-wacom-page.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-page.c b/panels/wacom/cc-wacom-page.c
index 100f232..22b04eb 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -217,8 +217,13 @@ calibrate_button_clicked_cb (GtkButton *button, gpointer user_data)
for (i = 0; i < 4; i++)
calibration[i] = current[i];
- if (calibration[0] == -1 && calibration[1] == -1 && calibration[2] == -1 && calibration[3] == -1)
- gsd_wacom_device_get_area(CC_WACOM_PAGE(user_data)->priv->stylus, &calibration);
+ if (calibration[0] == -1 && calibration[1] == -1 && calibration[2] == -1 && calibration[3] == -1) {
+ gint *device_cal;
+ device_cal = gsd_wacom_device_get_area(CC_WACOM_PAGE(user_data)->priv->stylus);
+ for (i = 0; i < 4; i++)
+ calibration[i] = device_cal[i];
+ g_free (device_cal);
+ }
if (run_calibration(calibration, 4))
set_calibration(calibration, 4, tablet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]