[gnome-color-manager] trivial: not all devices have a native-device
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: not all devices have a native-device
- Date: Wed, 24 Feb 2010 10:25:33 +0000 (UTC)
commit abb05d97832ce01b0823fac29472cd4f2a2782a4
Author: Richard Hughes <richard hughsie com>
Date: Wed Feb 24 09:48:46 2010 +0000
trivial: not all devices have a native-device
src/gcm-calibrate.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-calibrate.c b/src/gcm-calibrate.c
index c707d16..400ac65 100644
--- a/src/gcm-calibrate.c
+++ b/src/gcm-calibrate.c
@@ -221,7 +221,6 @@ gcm_calibrate_set_from_device (GcmCalibrate *calibrate, GcmDevice *device, GErro
/* get the device */
g_object_get (device,
- "native-device", &native_device,
"type", &type,
"serial", &serial,
"model", &model,
@@ -243,6 +242,9 @@ gcm_calibrate_set_from_device (GcmCalibrate *calibrate, GcmDevice *device, GErro
/* display specific properties */
if (type == GCM_DEVICE_TYPE_ENUM_DISPLAY) {
+ g_object_get (device,
+ "native-device", &native_device,
+ NULL);
if (native_device == NULL) {
g_set_error (error,
GCM_CALIBRATE_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]