diff options
author | Richard Hughes <richard@hughsie.com> | 2009-11-09 13:07:52 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2009-11-09 13:07:52 +0000 |
commit | 33bfab11ee5005c8e21d2aedb446a230de727cb6 (patch) | |
tree | 9240e43411031026d1d4dace5d31d2be80ec0b1e /client | |
parent | 7e3d25068c9f5a85956f89170a189b302992a4ca (diff) |
Just for packagekit-glib2, drop the 'Code' from PkError as it's a redundant suffix
Diffstat (limited to 'client')
-rw-r--r-- | client/pk-console.c | 4 | ||||
-rw-r--r-- | client/pk-monitor.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/pk-console.c b/client/pk-console.c index 37a9e1f5..99173ef9 100644 --- a/client/pk-console.c +++ b/client/pk-console.c @@ -619,7 +619,7 @@ pk_console_progress_cb (PkProgress *progress, PkProgressType type, gpointer data static void pk_console_finished_cb (GObject *object, GAsyncResult *res, gpointer data) { - PkErrorCode *error_code = NULL; + PkError *error_code = NULL; PkResults *results; GError *error = NULL; GPtrArray *array; @@ -642,7 +642,7 @@ pk_console_finished_cb (GObject *object, GAsyncResult *res, gpointer data) error_code = pk_results_get_error_code (results); if (error_code != NULL) { /* TRANSLATORS: the transaction failed in a way we could not expect */ - g_print ("%s: %s, %s\n", _("The transaction failed"), pk_error_enum_to_text (pk_error_code_get_code (error_code)), pk_error_code_get_details (error_code)); + g_print ("%s: %s, %s\n", _("The transaction failed"), pk_error_enum_to_text (pk_error_get_code (error_code)), pk_error_get_details (error_code)); goto out; } diff --git a/client/pk-monitor.c b/client/pk-monitor.c index 6fd67559..85699913 100644 --- a/client/pk-monitor.c +++ b/client/pk-monitor.c @@ -95,7 +95,7 @@ pk_monitor_adopt_cb (PkClient *_client, GAsyncResult *res, gpointer user_data) PkProgress *progress = NULL; PkExitEnum exit_enum; gchar *transaction_id = NULL; - PkErrorCode *error_code = NULL; + PkError *error_code = NULL; /* get the results */ results = pk_client_generic_finish (client, res, &error); @@ -121,7 +121,7 @@ pk_monitor_adopt_cb (PkClient *_client, GAsyncResult *res, gpointer user_data) /* check error code */ error_code = pk_results_get_error_code (results); if (error_code != NULL) - g_print ("%s\terror code: %s, %s\n", transaction_id, pk_error_enum_to_text (pk_error_code_get_code (error_code)), pk_error_code_get_details (error_code)); + g_print ("%s\terror code: %s, %s\n", transaction_id, pk_error_enum_to_text (pk_error_get_code (error_code)), pk_error_get_details (error_code)); out: g_free (transaction_id); if (error_code != NULL) |