[gnome-packagekit] bugfix: Actually cancel the transaction when the GpkWatch cancel button is pressed
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] bugfix: Actually cancel the transaction when the GpkWatch cancel button is pressed
- Date: Fri, 8 Jan 2010 09:50:51 +0000 (UTC)
commit dc35091a3e82c721d8eba0e628ce5ba3a62b2732
Author: Richard Hughes <richard hughsie com>
Date: Fri Jan 8 09:50:19 2010 +0000
bugfix: Actually cancel the transaction when the GpkWatch cancel button is pressed
src/gpk-watch.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-watch.c b/src/gpk-watch.c
index 45f6b21..407aa54 100644
--- a/src/gpk-watch.c
+++ b/src/gpk-watch.c
@@ -1189,6 +1189,7 @@ static void
gpk_watch_button_cancel_cb (GtkWidget *widget, GpkWatch *watch)
{
/* we might have a transaction running */
+ egg_debug ("cancelling transaction: %p", watch->priv->cancellable);
g_cancellable_cancel (watch->priv->cancellable);
}
@@ -1665,7 +1666,7 @@ gpk_watch_transaction_list_added_cb (PkTransactionList *tlist, const gchar *tran
return;
}
egg_debug ("added: %s", transaction_id);
- pk_client_adopt_async (PK_CLIENT(watch->priv->task), transaction_id, NULL,
+ pk_client_adopt_async (PK_CLIENT(watch->priv->task), transaction_id, watch->priv->cancellable,
(PkProgressCallback) gpk_watch_progress_cb, watch,
(GAsyncReadyCallback) gpk_watch_adopt_cb, watch);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]