[gnome-color-manager/colord] Use the new colord Device.AddProfile API by adding a relation type when creating profiles



commit d174c28fd2257f0e402e5899978ed58a654ead28
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 25 14:23:32 2011 +0000

    Use the new colord Device.AddProfile API by adding a relation type when creating profiles

 src/cc-color-panel.c |    2 ++
 src/gcm-session.c    |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index 429a243..a7e8002 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -764,6 +764,7 @@ cc_color_panel_calibrate_cb (GtkWidget *widget, CcColorPanel *panel)
 		goto out;
 	}
 	ret = cd_device_add_profile_sync (panel->priv->current_device,
+					  CD_DEVICE_RELATION_HARD,
 					  profile,
 					  panel->priv->cancellable,
 					  &error);
@@ -1178,6 +1179,7 @@ cc_color_panel_button_assign_ok_cb (GtkWidget *widget, CcColorPanel *panel)
 
 	/* just add it, the list store will get ::changed */
 	ret = cd_device_add_profile_sync (panel->priv->current_device,
+					  CD_DEVICE_RELATION_HARD,
 					  profile,
 					  panel->priv->cancellable,
 					  &error);
diff --git a/src/gcm-session.c b/src/gcm-session.c
index 92e84b1..5e18932 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -283,6 +283,7 @@ gcm_session_profile_added_notify_cb (CdClient *client_,
 
 	/* add the profile to the device */
 	ret = cd_device_add_profile_sync (device,
+					  CD_DEVICE_RELATION_SOFT,
 					  profile,
 					  NULL,
 					  &error);



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