[gnome-color-manager] Save the device type and title in the config file as we'll need this for unconnected operation



commit 2296e99a2574ce48be71e5096a345824c6cb8234
Author: Richard Hughes <richard hughsie com>
Date:   Wed Nov 18 12:28:54 2009 +0000

    Save the device type and title in the config file as we'll need this for unconnected operation

 src/gcm-device.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-device.c b/src/gcm-device.c
index 0963d90..b80cf70 100644
--- a/src/gcm-device.c
+++ b/src/gcm-device.c
@@ -352,6 +352,10 @@ gcm_device_save (GcmDevice *device, GError **error)
 	else
 		g_key_file_set_double (keyfile, device->priv->id, "contrast", device->priv->contrast);
 
+	/* save other properties we'll need if we add this device offline */
+	g_key_file_set_string (keyfile, device->priv->id, "title", device->priv->title);
+	g_key_file_set_string (keyfile, device->priv->id, "type", gcm_device_type_to_text (device->priv->type));
+
 	/* convert to string */
 	data = g_key_file_to_data (keyfile, NULL, &error_local);
 	if (data == NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]