[gnome-color-manager/colord: 44/72] trivial: make deleting virtual devices work again
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/colord: 44/72] trivial: make deleting virtual devices work again
- Date: Tue, 8 Mar 2011 11:27:02 +0000 (UTC)
commit a580e1f11ae44daeafc75d82e1dc1596884418d1
Author: Richard Hughes <richard hughsie com>
Date: Wed Feb 2 10:51:31 2011 +0000
trivial: make deleting virtual devices work again
src/cc-color-panel.c | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index d410bd1..4e14c17 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -1204,7 +1204,9 @@ out:
* cc_color_panel_profile_delete_event_cb:
**/
static gboolean
-cc_color_panel_profile_delete_event_cb (GtkWidget *widget, GdkEvent *event, CcColorPanel *panel)
+cc_color_panel_profile_delete_event_cb (GtkWidget *widget,
+ GdkEvent *event,
+ CcColorPanel *panel)
{
cc_color_panel_button_assign_cancel_cb (widget, panel);
return TRUE;
@@ -1220,10 +1222,13 @@ cc_color_panel_delete_cb (GtkWidget *widget, CcColorPanel *panel)
GError *error = NULL;
/* try to delete device */
-// ret = cd_client_delete_device (panel->priv->client, panel->priv->current_device, &error);
+ ret = cd_client_delete_device_sync (panel->priv->client,
+ cd_device_get_id (panel->priv->current_device),
+ panel->priv->cancellable,
+ &error);
if (!ret) {
- /* TRANSLATORS: could not read file */
- cc_color_panel_error_dialog (panel, _("Failed to delete file"), error->message);
+ /* TRANSLATORS: could not delete virtual device */
+ cc_color_panel_error_dialog (panel, _("Failed to delete device"), error->message);
g_error_free (error);
}
}
@@ -1232,7 +1237,8 @@ cc_color_panel_delete_cb (GtkWidget *widget, CcColorPanel *panel)
* cc_color_panel_add_devices_columns:
**/
static void
-cc_color_panel_add_devices_columns (CcColorPanel *panel, GtkTreeView *treeview)
+cc_color_panel_add_devices_columns (CcColorPanel *panel,
+ GtkTreeView *treeview)
{
GtkCellRenderer *renderer;
GtkTreeViewColumn *column;
@@ -1261,7 +1267,8 @@ cc_color_panel_add_devices_columns (CcColorPanel *panel, GtkTreeView *treeview)
* cc_color_panel_add_assign_columns:
**/
static void
-cc_color_panel_add_assign_columns (CcColorPanel *panel, GtkTreeView *treeview)
+cc_color_panel_add_assign_columns (CcColorPanel *panel,
+ GtkTreeView *treeview)
{
GtkCellRenderer *renderer;
GtkTreeViewColumn *column;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]