[gnome-color-manager/colord] trivial: fix removing a profile from a device
- From: rhughes src gnome org
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/colord] trivial: fix removing a profile from a device
- Date: Wed, 2 Feb 2011 11:54:55 +0000 (UTC)
commit 7bc4a77a2ade072f7daaa8a56d9c8a4254dfb5ac
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]