[gnome-color-manager/colord: 46/72] trivial: fix removing a profile from a device



commit d9aed50970ccc454dfc9eb14117d0bd788458eaa
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 2 11:06:32 2011 +0000

    trivial: fix removing a profile from a device

 src/cc-color-panel.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index b7753a5..ae62426 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -943,7 +943,7 @@ cc_color_panel_profile_remove_cb (GtkWidget *widget, CcColorPanel *panel)
 	GtkTreeSelection *selection;
 	GtkTreeModel *model;
 	gboolean ret = FALSE;
-	GcmProfile *profile = NULL;
+	CdProfile *profile = NULL;
 	GError *error = NULL;
 
 	/* get the selected row */
@@ -960,7 +960,10 @@ cc_color_panel_profile_remove_cb (GtkWidget *widget, CcColorPanel *panel)
 			    -1);
 
 	/* just remove it, the list store will get ::changed */
-//	ret = cd_device_profile_remove (panel->priv->current_device, profile, &error);
+	ret = cd_device_remove_profile_sync (panel->priv->current_device,
+					     profile,
+					     panel->priv->cancellable,
+					     &error);
 	if (!ret) {
 		g_warning ("failed to remove profile: %s", error->message);
 		g_error_free (error);



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